SQLITE源码剖析(11)

声明:本SQLite源码剖析系列为刘兴(http://deepfuture.iteye.com/)原创,未经笔者授权,任何人和机构不能转载

**应用程序必须在关闭sqlite3对象前,[sqlite3_finalize | finalize]

**所有的与该对象相关的[prepared statements],必须[sqlite3_blob_close | **close]所有的与该对象相关的

**[BLOB handles] (BLOB大二进制句柄)

** Applications must [sqlite3_**finalize | finalize] all [prepared statements]

** and [sqlite3_blob_close | close] all [BLOB handles] associated with

** the [sqlite3] object prior to attempting to close the object.  ^If

** sqlite3_close() is called on a [database connection] that still has

** outstanding [prepared statements] or [BLOB handles], then it returns

** SQLITE_BUSY.

**如果sqlite3_close()在[database connection]数据库连接被调用,该数

**据库连接中仍有显式的[prepared statements][BLOB handles],则返回

**SQLITE_BUSY。当事务打开时,调用sqlite3_close(),事务自动回滚。

** ^If [sqlite3_close()] is invoked while a transaction is open,

** the transaction is automatically rolled back.

**sqlite3_close(C)的C参数可以是NULL指针或从sqlite3_open()、sqlite3_**open16()、sqlite3_open_v2()获取的[sqlite3]对象指针

**使用NULL参数调用sqlite3_close()为没负作用的空操作

** The C parameter to [sqlite3_close(C)] must be either a NULL

** pointer or an [sqlite3] object pointer obtained

** from [sqlite3_open()], [sqlite3_open16()], or

** [sqlite3_open_v2()], and not previously closed.

** ^Calling sqlite3_close() with a NULL pointer argument is a 

** harmless no-op.

*/

SQLITE_API int sqlite3_close(sqlite3 *);


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值