欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

SQLITE源码剖析(15)

程序员文章站 2022-05-08 21:57:04
...

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

** Restrictions:

**

** <ul>必须保证sqlite3_exec()的第1个参数是有效且打开的database connection

** <li> The application must insure that the 1st parameter to sqlite3_exec()

**      is a valid and open [database connection].

** <li> The application must not close [database connection] specified by

**      the 1st parameter to sqlite3_exec() while sqlite3_exec() is running.

**当sqlite3_exec()运行时,应用程序不能关闭被sqlite3_exec()第一个

**参数定义的database connection,也不能修改第2个参数定义的SQL文本

database connection** <li> The application must not modify the SQL statement text passed into

**      the 2nd parameter of sqlite3_exec() while sqlite3_exec() is running.

** </ul>

*/

SQLITE_API int sqlite3_exec(

  sqlite3*,                                  /* An open database */

  const char *sql,                           /* SQL to be evaluated */

  int (*callback)(void*,int,char**,char**),  /* Callback function */

  void *,                                    /* 1st argument to callback */

  char **errmsg                              /* Error msg written here */

);

相关标签: SQLite SQL