logo

SQLite C Interface: Closing A Database Connection

日期:2008-01-15 21:10 , 点击:178 , 分类:SEO研究
相关标签:close,



SQLite C Interface

Closing A Database Connection

int sqlite3_close(sqlite3 *);

The sqlite3_close() interfaces destroys an sqlite3 object allocated by a prior call to sqlite3_open(), sqlite3_open16(), or sqlite3_open_v2(). Sqlite3_close() releases all memory used by the connection and closes all open files..

If the database connection contains prepared statements that have not been finalized by sqlite3_finalize(), then sqlite3_close() returns SQLITE_BUSY and leaves the connection open. Giving sqlite3_close() a NULL pointer is a harmless no-op.

Passing this routine a database connection that has already been closed results in undefined behavior. If other interfaces that reference the same database connection are pending (either in the same thread or in different threads) when this routine is called, then the behavior is undefined and is almost certainly undesirable.

See also lists of Objects, Constants, and Functions.



SQLite C Interface: Closing A Database Connection 评论

# 昵称:

# 邮箱:

# 标题:

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

    



站内搜索




* 匹配全部


热门排行


最新内容



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

Powered By xydw.com Page Loaded in:2.158400s