⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compile.html

📁 sqlite的帮助文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</p></blockquote><a name="omit_flag_pragmas"></a><p><b>SQLITE_OMIT_FLAG_PRAGMAS</b></p><blockquote><p>  This option omits support for a subset of <a href="pragma.html#syntax">PRAGMA</a> commands that  query and set boolean properties.</p></blockquote><a name="omit_floating_point"></a><p><b>SQLITE_OMIT_FLOATING_POINT</b></p><blockquote><p>  This option is used to omit floating-point number support from the SQLite  library. When specified, specifying a floating point number as a literal   (i.e. "1.01") results in a parse error.</p><p>  <p>In the future, this option may also disable other floating point   functionality, for example the <a href="c3ref/result_blob.html">sqlite3_result_double()</a>,   <a href="c3ref/bind_blob.html">sqlite3_bind_double()</a>, <a href="c3ref/value_blob.html">sqlite3_value_double()</a> and  <a href="c3ref/column_blob.html">sqlite3_column_double()</a> API functions.  </p></p></blockquote><a name="omit_foreign_key"></a><p><b>SQLITE_OMIT_FOREIGN_KEY</b></p><blockquote><p>  If this option is defined, FOREIGN KEY clauses in column declarations are  ignored.</p></blockquote><a name="omit_get_table"></a><p><b>SQLITE_OMIT_GET_TABLE</b></p><blockquote><p>  This option causes support for <a href="c3ref/free_table.html">sqlite3_get_table()</a> and  <a href="c3ref/free_table.html">sqlite3_free_table()</a> to be omitted.</p></blockquote><a name="omit_incrblob"></a><p><b>SQLITE_OMIT_INCRBLOB</b></p><blockquote><p>  This option causes support for <a href="c3ref/blob.html">incremental BLOB I/O</a>  to be omitted.</p></blockquote><a name="omit_integrity_check"></a><p><b>SQLITE_OMIT_INTEGRITY_CHECK</b></p><blockquote><p>  This option omits support for the <a href="pragma.html#pragma_integrity_check">integrity_check pragma</a>.</p></blockquote><a name="omit_like_optimization"></a><p><b>SQLITE_OMIT_LIKE_OPTIMIZATION</b></p><blockquote><p>  This option disables the ability of SQLite to use indices to help  resolve <a href="lang_expr.html#like">LIKE</a> and <a href="lang_expr.html#glob">GLOB</a> operators in a WHERE clause.</p></blockquote><a name="omit_load_extension"></a><p><b>SQLITE_OMIT_LOAD_EXTENSION</b></p><blockquote><p>  This option omits the entire extension loading mechanism from  SQLite, including <a href="c3ref/enable_load_extension.html">sqlite3_enable_load_extension()</a> and  <a href="c3ref/load_extension.html">sqlite3_load_extension()</a> interfaces.</p></blockquote><a name="omit_localtime"></a><p><b>SQLITE_OMIT_LOCALTIME</b></p><blockquote><p>  This option omits the "localtime" modifier from the date and time  functions.  This option is sometimes useful when trying to compile  the date and time functions on a platform that does not support the  concept of local time.</p></blockquote><a name="omit_memorydb"></a><p><b>SQLITE_OMIT_MEMORYDB</b></p><blockquote><p>  When this is defined, the library does not respect the special database  name ":memory:" (normally used to create an in-memory database). If   ":memory:" is passed to <a href="c3ref/open.html">sqlite3_open()</a>, <a href="c3ref/open.html">sqlite3_open16()</a>, or  <a href="c3ref/open.html">sqlite3_open_v2()</a>, a file with this name will be   opened or created.</p></blockquote><a name="omit_or_optimization"></a><p><b>SQLITE_OMIT_OR_OPTIMIZATION</b></p><blockquote><p>  This option disables the ability of SQLite to use an index together  with terms of a WHERE clause connected by the OR operator.</p></blockquote><a name="omit_pager_pragmas"></a><p><b>SQLITE_OMIT_PAGER_PRAGMAS</b></p><blockquote><p>  Defining this option omits pragmas related to the pager subsystem from   the build.</p></blockquote><a name="omit_pragma"></a><p><b>SQLITE_OMIT_PRAGMA</b></p><blockquote><p>  This option is used to omit the <a href="pragma.html#syntax">PRAGMA</a> command  from the library. Note that it is useful to define the macros that omit  specific pragmas in addition to this, as they may also remove supporting code  in other sub-systems. This macro removes the <a href="pragma.html#syntax">PRAGMA</a> command only.</p></blockquote><a name="omit_progress_callback"></a><p><b>SQLITE_OMIT_PROGRESS_CALLBACK</b></p><blockquote><p>  This option may be defined to omit the capability to issue "progress"   callbacks during long-running SQL statements. The   <a href="c3ref/progress_handler.html">sqlite3_progress_handler()</a>  API function is not present in the library.</p></blockquote><a name="omit_quickbalance"></a><p><b>SQLITE_OMIT_QUICKBALANCE</b></p><blockquote><p>  This option omits an alternative, faster B-Tree balancing routine.  Using this option makes SQLite slightly smaller at the expense of  making it run slightly slower.</p></blockquote><a name="omit_reindex"></a><p><b>SQLITE_OMIT_REINDEX</b></p><blockquote><p>  When this option is defined, the <a href="lang_reindex.html">REINDEX</a>  command is not included in the library.  Executing a <a href="lang_reindex.html">REINDEX</a> statement causes   a parse error.</p></blockquote><a name="omit_schema_pragmas"></a><p><b>SQLITE_OMIT_SCHEMA_PRAGMAS</b></p><blockquote><p>  Defining this option omits pragmas for querying the database schema from   the build.</p></blockquote><a name="omit_schema_version_pragmas"></a><p><b>SQLITE_OMIT_SCHEMA_VERSION_PRAGMAS</b></p><blockquote><p>  Defining this option omits pragmas for querying and modifying the   database schema version and user version from the build. Specifically, the   <a href="pragma.html#pragma_schema_version">schema_version</a> and <a href="pragma.html#pragma_schema_version">user_version</a> PRAGMAs are omitted.</p></blockquote><a name="omit_shared_cache"></a><p><b>SQLITE_OMIT_SHARED_CACHE</b></p><blockquote><p>  This option builds SQLite without support for shared-cache mode.  The <a href="c3ref/enable_shared_cache.html">sqlite3_enable_shared_cache()</a> is omitted along with a fair  amount of logic within the B-Tree subsystem associated with shared  cache management.</p></blockquote><a name="omit_subquery"></a><p><b>SQLITE_OMIT_SUBQUERY</b></p><blockquote><p>  If defined, support for sub-selects and the IN() operator are omitted.</p></blockquote><a name="omit_tcl_variable"></a><p><b>SQLITE_OMIT_TCL_VARIABLE</b></p><blockquote><p>  If this macro is defined, then the special "$<variable-name>" syntax  used to automatically bind SQL variables to TCL variables is omitted.</p></blockquote><a name="omit_tempdb"></a><p><b>SQLITE_OMIT_TEMPDB</b></p><blockquote><p>  This option omits support for TEMP or TEMPORARY tables.</p></blockquote><a name="omit_trace"></a><p><b>SQLITE_OMIT_TRACE</b></p><blockquote><p>  This option omits support for the <a href="c3ref/profile.html">sqlite3_profile()</a> and  <a href="c3ref/profile.html">sqlite3_trace()</a> interfaces and their associated logic.</p></blockquote><a name="omit_trigger"></a><p><b>SQLITE_OMIT_TRIGGER</b></p><blockquote><p>  Defining this option omits support for VIEW objects. Neither the   <a href="lang_createtrigger.html">CREATE TRIGGER</a> or <a href="lang_droptrigger.html">DROP TRIGGER</a>  commands are available in this case, and attempting to execute  either will result in a parse error.</p><p>  WARNING: If this macro is defined, it will not be possible to open a database  for which the schema contains TRIGGER objects. </p></blockquote><a name="omit_truncate_optimization"></a><p><b>SQLITE_OMIT_TRUNCATE_OPTIMIZATION</b></p><blockquote><p>  A default build of SQLite, if a <a href="lang_delete.html">DELETE</a> statement has no WHERE clause  and operates on a table with no triggers, an optimization occurs that  causes the DELETE to occur by dropping and recreating the table.    Dropping and recreating a table is usually much faster than deleting  the table content row by row.  This is the "truncate optimization".</p></blockquote><a name="omit_utf16"></a><p><b>SQLITE_OMIT_UTF16</b></p><blockquote><p>  This macro is used to omit support for UTF16 text encoding. When this is  defined all API functions that return or accept UTF16 encoded text are  unavailable. These functions can be identified by the fact that they end  with '16', for example <a href="c3ref/prepare.html">sqlite3_prepare16()</a>, <a href="c3ref/column_blob.html">sqlite3_column_text16()</a> and  <a href="c3ref/bind_blob.html">sqlite3_bind_text16()</a>.</p></blockquote><a name="omit_vacuum"></a><p><b>SQLITE_OMIT_VACUUM</b></p><blockquote><p>  When this option is defined, the <a href="lang_vacuum.html">VACUUM</a>  command is not included in the library.  Executing a <a href="lang_vacuum.html">VACUUM</a> statement causes   a parse error.</p></blockquote><a name="omit_view"></a><p><b>SQLITE_OMIT_VIEW</b></p><blockquote><p>  Defining this option omits support for VIEW objects. Neither the   <a href="lang_createview.html">CREATE VIEW</a> nor the <a href="lang_dropview.html">DROP VIEW</a>  commands are available in this case, and  attempting to execute either will result in a parse error.</p><p>  WARNING: If this macro is defined, it will not be possible to open a database  for which the schema contains VIEW objects. </p></blockquote><a name="omit_virtualtable"></a><p><b>SQLITE_OMIT_VIRTUALTABLE</b></p><blockquote><p>  This option omits support for the <a href="c3ref/vtab.html">Virtual Table</a>  mechanism in SQLite.</p></blockquote><a name="omit_wsd"></a><p><b>SQLITE_OMIT_WSD</b></p><blockquote><p>  This options builds a version of the SQLite library that contains no  Writable Static Data (WSD).  WSD is global variables and/or static  variables.  Some platforms do not support WSD, and this option is necessary  in order for SQLite to work those platforms.  </p><p>  Unlike other OMIT options which make the SQLite library smaller,  this option actually increases the size of SQLite and makes it run  a little slower.  Only use this option if SQLite is being built for an  embedded target that does not support WSD.</p></blockquote><a name="omit_xfer_opt"></a><p><b>SQLITE_OMIT_XFER_OPT</b></p><blockquote><p>  This option omits support for optimizations that help statements  of the form "INSERT INTO ... SELECT ..." run faster.</p></blockquote><a name="zero_malloc"></a><p><b>SQLITE_ZERO_MALLOC</b></p><blockquote><p>  This option omits both the <a href="malloc.html#defaultalloc">default memory allocator</a> and the  <a href="malloc.html#memdebug">debugging memory allocator</a> from the build and substitutes a stub  memory allocator that always fails.  SQLite will not run with this  stub memory allocator since it will be unable to allocate memory.  But  this stub can be replaced at start-time using  <a href="c3ref/config.html">sqlite3_config</a>(<a href="c3ref/c_config_getmalloc.html">SQLITE_CONFIG_MALLOC</a>,...) or  <a href="c3ref/config.html">sqlite3_config</a>(<a href="c3ref/c_config_getmalloc.html">SQLITE_CONFIG_HEAP</a>,...).  So the net effect of this compile-time option is that it allows SQLite  to be compiled and linked against a system library that does not support  malloc(), free(), and/or realloc().</p></blockquote><a name="debugoptions"></a><h2>1.7 Analysis and Debugging Options</h2><a name="debug"></a><p><b>SQLITE_DEBUG</b></p><blockquote><p>  The SQLite source code contains literally thousands of assert() statements  used to verify internal assumptions and subroutine preconditions and  postconditions.  These assert() statements are normally turned off  (they generate no code) since turning them on makes SQLite run approximately  three times slower.  But for testing and analysis, it is useful to turn  the assert() statements on.  The SQLITE_DEBUG compile-time option does this.  SQLITE_DEBUG also turns on some other debugging features.</p></blockquote><a name="memdebug"></a><p><b>SQLITE_MEMDEBUG</b></p><blockquote><p>  The SQLITE_MEMDEBUG option causes an instrumented   <a href="malloc.html#memdebug">debugging memory allocator</a>  to be used as the default memory allocator within SQLite.  The  instrumented memory allocator checks for misuse of dynamically allocated  memory.  Examples of misuse include using memory after it is freed,  writing off the ends of a memory allocation, freeing memory not previously  obtained from the memory allocator, or failing to initialize newly  allocated memory.</p></blockquote><hr><small><i>This page last modified 2008/11/12 14:10:29 UTC</i></small></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -