1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

Add an option to register global hooks used for logging all SQL executed by an application.

FossilOrigin-Name: cd501bbccf3e62b002317592cc331770b32c129a
This commit is contained in:
dan
2012-11-26 19:50:41 +00:00
parent 6d405c2cb7
commit ac45593931
9 changed files with 520 additions and 14 deletions

View File

@@ -2515,6 +2515,10 @@ struct Sqlite3Config {
void (*xLog)(void*,int,const char*); /* Function for logging */
void *pLogArg; /* First argument to xLog() */
int bLocaltimeFault; /* True to fail localtime() calls */
#ifdef SQLITE_ENABLE_SQLLOG
void(*xSqllog)(void*,sqlite3*,const char*, int);
void *pSqllogArg;
#endif
};
/*