Skip to content

Support SQL tracing #8

Description

@mrts

SQLite supports SQL tracing which is truly useful for debugging prepared statements. Similar functionality may be supported by other backends as well.

Tracing works like this:

static void profile(void *context, const char *sql)
{
    fprintf(stderr, "Query: %s\n", sql);
}

int main()
{
    ...
    sqlite3_trace(db, profile, NULL);
    ...
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions