Skip to content

Support SQL tracing #8

@mrts

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);
    ...
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions