|
int sqlite3_auto_extension(void *xEntryPoint);
Register an extension entry point that is automatically invoked whenever a new database connection is opened using sqlite3_open(), sqlite3_open16(), or sqlite3_open_v2().
This API can be invoked at program startup in order to register one or more statically linked extensions that will be available to all new database connections.
Duplicate extensions are detected so calling this routine multiple times with the same extension is harmless.
This routine stores a pointer to the extension in an array that is obtained from malloc(). If you run a memory leak checker on your program and it reports a leak because of this array, then invoke sqlite3_reset_auto_extension() prior to shutdown to free the memory.
Automatic extensions apply across all threads.
This interface is experimental and is subject to change or removal in future releases of SQLite.
See also lists of Objects, Constants, and Functions.