Small. Fast. Reliable.
Choose any three.

About Sitemap Documentation Download License News Developers Support

## SQLite C Interface

## Make Arrangements To Automatically Load An Extension

>     int sqlite3_auto_extension(void *xEntryPoint);

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().

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 sqlite_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.

This page last modified 2008/05/12 13:08:44 UTC