加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

sqlite3_close()

发布时间:2020-12-12 20:28:27 所属栏目:百科 来源:网络整理
导读: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 reso

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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读