sqlite3_close()

Closing A Database Connection

int sqlite3_close(sqlite3 *);

The sqlite3_close() routine is the destructor for thesqlite3object. Calls to sqlite3_close() return sqlITE_OK if thesqlite3object is successfully destroyed and all associated resources are deallocated.

Applications mustfinalizeallprepared statementsandcloseallBLOB handlesassociated with thesqlite3object prior to attempting to close the object. If sqlite3_close() is called on adatabase connectionthat still has outstandingprepared statementsorBLOB handles,then it returns sqlITE_BUSY.

Ifsqlite3_close()is invoked while a transaction is open,the transaction is automatically rolled back.

The C parameter tosqlite3_close(C)must be either a NULL pointer or ansqlite3object pointer obtained fromsqlite3_open(),sqlite3_open16(),orsqlite3_open_v2(),and not prevIoUsly closed. Calling sqlite3_close() with a NULL pointer argument is a harmless no-op.

See also lists ofObjects,Constants,andFunctions.

相关文章

SQLite架构简单,又有Json计算能力,有时会承担Json文件/RES...
使用Python操作内置数据库SQLite以及MySQL数据库。
破解微信数据库密码,用python导出微信聊天记录
(Unity)SQLite 是一个软件库,实现了自给自足的、无服务器...
安卓开发,利用SQLite实现登陆注册功能