|
int sqlite3_auto_extension(void (*xEntryPoint)(void));
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.
This routine stores a pointer to the extension in an array that is obtained from sqlite3_malloc(). If you run a memory leak checker on your program and it reports a leak because of this array, invoke sqlite3_reset_auto_extension() prior to shutdown to free the memory.
This function registers an extension entry point that is automatically invoked whenever a new database connection is opened using sqlite3_open(), sqlite3_open16(), or sqlite3_open_v2().
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 sqlite3_malloc().
Automatic extensions apply across all threads.
See also lists of Objects, Constants, and Functions.