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

SQLITE源码剖析(7)

程序员文章站 2022-03-02 16:28:25
...

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

** ^The sqlite3_version[] string constant contains the text of [SQLITE_VERSION]

** macro.  ^The sqlite3_libversion() function returns a pointer to the

** to the sqlite3_version[] string constant.  The sqlite3_libversion()

** function is provided for use in DLLs since DLL users usually do not have

** direct access to string constants within the DLL.  ^The

** sqlite3_libversion_number() function returns an integer equal to

** [SQLITE_VERSION_NUMBER].  ^The sqlite3_sourceid() function returns 

** a pointer to a string constant whose value is the same as the 

** [SQLITE_SOURCE_ID] C preprocessor macro.

**

** See also: [sqlite_version()] and [sqlite_source_id()].

*/

SQLITE_API const char sqlite3_version[] = SQLITE_VERSION;

SQLITE_API const char *sqlite3_libversion(void);

SQLITE_API const char *sqlite3_sourceid(void);

SQLITE_API int sqlite3_libversion_number(void);

//SQLITE_VERSION 宏定义了版本号,在本源码包中定义为"3.6.23.1"

//sqlite3_version[]为前面定义的SQLITE_VERSION宏的内容,即版本号

//sqlite3_libversion()返回指向sqlite3_version[]字符数组常量的指针

//sqlite3_sourceid()返回一个指向SQLITE_SOURCE_ID宏内容的指针

//sqlite3_libversion_number()返回SQLITE_VERSION_NUMBER宏定义的版本号

#ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS

/*

** CAPI3REF: Run-Time Library Compilation Options Diagnostics

**

** ^The sqlite3_compileoption_used() function returns 0 or 1 

** indicating whether the specified option was defined at 

** compile time.  ^The SQLITE_ prefix may be omitted from the 

** option name passed to sqlite3_compileoption_used().  

**sqlite3_compileoption_used()返回0和1,指示编译时是否有定义的选项

** ^The sqlite3_compileoption_get() function allows interating

** over the list of options that were defined at compile time by

** returning the N-th compile time option string.  ^If N is out of range,

**sqlite3_compileoption_get()允许正在起作用的编译时定义的选项列表,

**返回N次编译时的选项字符串

** sqlite3_compileoption_get() returns a NULL pointer.  ^The SQLITE_ 

** prefix is omitted from any strings returned by 

** sqlite3_compileoption_get().

**如果 N过界,sqlite3_compileoption_get()返回NULL指针

** ^Support for the diagnostic functions sqlite3_compileoption_used()

** and sqlite3_compileoption_get() may be omitted by specifing the 

** [SQLITE_OMIT_COMPILEOPTION_DIAGS] option at compile time.

**编译时定义SQLITE_OMIT_COMPILEOPTION_DIAGS选项,将忽略sqlite3_compileoption_used()和 sqlite3_compileoption_get()这2个诊断函数

** See also: SQL functions [sqlite_compileoption_used()] and

** [sqlite_compileoption_get()] and the [compile_options pragma].

*/

SQLITE_API int sqlite3_compileoption_used(const char *zOptName);

SQLITE_API const char *sqlite3_compileoption_get(int N);

#endif /* SQLITE_OMIT_COMPILEOPTION_DIAGS */

相关标签: SQLite SQL Access