Small. Fast. Reliable.
Choose any three.

About Sitemap Documentation Download License News Support

## SQLite C Interface

## Automatically Load An Extensions

>     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 entry point in an array that is obtained from sqlite3_malloc(). That memory is deallocated by sqlite3_reset_auto_extension().

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. Automatic extensions apply across all threads.

See also lists of Objects, Constants, and Functions.