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

📄 capi3ref.html

📁 sqlite的帮助文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<p>The <a href="#SQLITE_FCNTL_LOCKSTATE">SQLITE_FCNTL_LOCKSTATE</a> opcode is used for debugging.  Thisopcode causes the xFileControl method to write the current state ofthe lock (one of <a href="#SQLITE_LOCK_EXCLUSIVE">SQLITE_LOCK_NONE</a>, <a href="#SQLITE_LOCK_EXCLUSIVE">SQLITE_LOCK_SHARED</a>,<a href="#SQLITE_LOCK_EXCLUSIVE">SQLITE_LOCK_RESERVED</a>, <a href="#SQLITE_LOCK_EXCLUSIVE">SQLITE_LOCK_PENDING</a>, or <a href="#SQLITE_LOCK_EXCLUSIVE">SQLITE_LOCK_EXCLUSIVE</a>)into an integer that the pArg argument points to. This capabilityis used during testing and only needs to be supported when SQLITE_TESTis defined.</p><hr><a name="SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS"></a><h2>Testing Interface Operation Codes</h2><blockquote><pre>#define SQLITE_TESTCTRL_PRNG_SAVE                5#define SQLITE_TESTCTRL_PRNG_RESTORE             6#define SQLITE_TESTCTRL_PRNG_RESET               7#define SQLITE_TESTCTRL_BITVEC_TEST              8#define SQLITE_TESTCTRL_FAULT_INSTALL            9#define SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS     10</pre></blockquote><p>These constants are the valid operation code parameters usedas the first argument to <a href="#sqlite3_test_control">sqlite3_test_control()</a>.</p><p>These parameters and their meanings are subject to changewithout notice.  These values are for testing purposes only.Applications should not use any of these parameters or the<a href="#sqlite3_test_control">sqlite3_test_control()</a> interface.</p><hr><a name="SQLITE_ALTER_TABLE"></a><h2>Authorizer Action Codes</h2><blockquote><pre>/******************************************* 3rd ************ 4th ***********/#define SQLITE_CREATE_INDEX          1   /* Index Name      Table Name      */#define SQLITE_CREATE_TABLE          2   /* Table Name      NULL            */#define SQLITE_CREATE_TEMP_INDEX     3   /* Index Name      Table Name      */#define SQLITE_CREATE_TEMP_TABLE     4   /* Table Name      NULL            */#define SQLITE_CREATE_TEMP_TRIGGER   5   /* Trigger Name    Table Name      */#define SQLITE_CREATE_TEMP_VIEW      6   /* View Name       NULL            */#define SQLITE_CREATE_TRIGGER        7   /* Trigger Name    Table Name      */#define SQLITE_CREATE_VIEW           8   /* View Name       NULL            */#define SQLITE_DELETE                9   /* Table Name      NULL            */#define SQLITE_DROP_INDEX           10   /* Index Name      Table Name      */#define SQLITE_DROP_TABLE           11   /* Table Name      NULL            */#define SQLITE_DROP_TEMP_INDEX      12   /* Index Name      Table Name      */#define SQLITE_DROP_TEMP_TABLE      13   /* Table Name      NULL            */#define SQLITE_DROP_TEMP_TRIGGER    14   /* Trigger Name    Table Name      */#define SQLITE_DROP_TEMP_VIEW       15   /* View Name       NULL            */#define SQLITE_DROP_TRIGGER         16   /* Trigger Name    Table Name      */#define SQLITE_DROP_VIEW            17   /* View Name       NULL            */#define SQLITE_INSERT               18   /* Table Name      NULL            */#define SQLITE_PRAGMA               19   /* Pragma Name     1st arg or NULL */#define SQLITE_READ                 20   /* Table Name      Column Name     */#define SQLITE_SELECT               21   /* NULL            NULL            */#define SQLITE_TRANSACTION          22   /* NULL            NULL            */#define SQLITE_UPDATE               23   /* Table Name      Column Name     */#define SQLITE_ATTACH               24   /* Filename        NULL            */#define SQLITE_DETACH               25   /* Database Name   NULL            */#define SQLITE_ALTER_TABLE          26   /* Database Name   Table Name      */#define SQLITE_REINDEX              27   /* Index Name      NULL            */#define SQLITE_ANALYZE              28   /* Table Name      NULL            */#define SQLITE_CREATE_VTABLE        29   /* Table Name      Module Name     */#define SQLITE_DROP_VTABLE          30   /* Table Name      Module Name     */#define SQLITE_FUNCTION             31   /* NULL            Function Name   */#define SQLITE_COPY                  0   /* No longer used */</pre></blockquote><p>The <a href="#sqlite3_set_authorizer">sqlite3_set_authorizer()</a> interface registers a callback functionthat is invoked to authorize certain SQL statement actions.  Thesecond parameter to the callback is an integer code that specifieswhat action is being authorized.  These are the integer action codes thatthe authorizer callback may be passed.</p><p>These action code values signify what kind of operation is to beauthorized.  The 3rd and 4th parameters to the authorizationcallback function will be parameters or NULL depending on which of thesecodes is used as the second parameter.  The 5th parameter to theauthorizer callback is the name of the database ("main", "temp",etc.) if applicable.  The 6th parameter to the authorizer callbackis the name of the inner-most trigger or view that is responsible forthe access attempt or NULL if this access attempt is directly fromtop-level SQL code.</p><p><h3>Invariants:</h3><table border="0" cellpadding="5" cellspacing="0"><tr><td valign="top">H12551</td> <td valign="top">The second parameter to an<a href="#sqlite3_set_authorizer">authorizer callback</a> shall be an integer<a href="#SQLITE_ALTER_TABLE">authorizer code</a> that specifies what actionis being authorized.</td></tr><tr><td valign="top">H12552</td> <td valign="top">The 3rd and 4th parameters to the<a href="#sqlite3_set_authorizer">authorization callback</a>shall be parameters or NULL depending on which<a href="#SQLITE_ALTER_TABLE">authorizer code</a> is used as the second parameter.</td></tr><tr><td valign="top">H12553</td> <td valign="top">The 5th parameter to the<a href="#sqlite3_set_authorizer">authorizer callback</a> shall be the nameof the database (example: "main", "temp", etc.) if applicable.</td></tr><tr><td valign="top">H12554</td> <td valign="top">The 6th parameter to the<a href="#sqlite3_set_authorizer">authorizer callback</a> shall be the nameof the inner-most trigger or view that is responsible forthe access attempt or NULL if this access attempt is directly fromtop-level SQL code.</td></tr></table></p><hr><a name="SQLITE_DENY"></a><h2>Authorizer Return Codes</h2><blockquote><pre>#define SQLITE_DENY   1   /* Abort the SQL statement with an error */#define SQLITE_IGNORE 2   /* Don't allow access, but don't generate an error */</pre></blockquote><p>The <a href="#sqlite3_set_authorizer">authorizer callback function</a> mustreturn either <a href="#SQLITE_ABORT">SQLITE_OK</a> or one of these two constants in orderto signal SQLite whether or not the action is permitted.  See the<a href="#sqlite3_set_authorizer">authorizer documentation</a> for additionalinformation.</p><hr><a name="SQLITE_LIMIT_ATTACHED"></a><h2>Run-Time Limit Categories</h2><blockquote><pre>#define SQLITE_LIMIT_LENGTH                    0#define SQLITE_LIMIT_SQL_LENGTH                1#define SQLITE_LIMIT_COLUMN                    2#define SQLITE_LIMIT_EXPR_DEPTH                3#define SQLITE_LIMIT_COMPOUND_SELECT           4#define SQLITE_LIMIT_VDBE_OP                   5#define SQLITE_LIMIT_FUNCTION_ARG              6#define SQLITE_LIMIT_ATTACHED                  7#define SQLITE_LIMIT_LIKE_PATTERN_LENGTH       8#define SQLITE_LIMIT_VARIABLE_NUMBER           9</pre></blockquote><p>These constants define various aspects of a <a href="#sqlite3">database connection</a>that can be limited in size by calls to <a href="#sqlite3_limit">sqlite3_limit()</a>.The meanings of the various limits are as follows:</p><p><dl><dt>SQLITE_LIMIT_LENGTH</dt><dd>The maximum size of any string or BLOB or table row.<dd></p><p><dt>SQLITE_LIMIT_SQL_LENGTH</dt><dd>The maximum length of an SQL statement.</dd></p><p><dt>SQLITE_LIMIT_COLUMN</dt><dd>The maximum number of columns in a table definition or in theresult set of a SELECT or the maximum number of columns in an indexor in an ORDER BY or GROUP BY clause.</dd></p><p><dt>SQLITE_LIMIT_EXPR_DEPTH</dt><dd>The maximum depth of the parse tree on any expression.</dd></p><p><dt>SQLITE_LIMIT_COMPOUND_SELECT</dt><dd>The maximum number of terms in a compound SELECT statement.</dd></p><p><dt>SQLITE_LIMIT_VDBE_OP</dt><dd>The maximum number of instructions in a virtual machine programused to implement an SQL s

⌨️ 快捷键说明

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