logo

SQLite C Interface: Make Arrangements To Automatically Load An Extension

日期:2008-02-20 00:04 , 点击:385 , 分类:SEO研究
相关标签:auto_extension,



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.



SQLite C Interface: Make Arrangements To Automatically Load An Extension 评论

# 昵称:

# 邮箱:

# 标题:

* 请勿发布任何违反国家互联网相关法律法规的内容

    



站内搜索




* 匹配全部


热门排行


最新内容



Copyright © 2008 Sqlite中文实验室 版权所有
蜀ICP备08000081号 -

Powered By xydw.com Page Loaded in:0.596776s