aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index 074fed0..797069e 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -6,33 +6,55 @@ use crate::ffi;
use crate::{Connection, Result};
/// Database Connection Configuration Options
+/// See [Database Connection Configuration Options](https://sqlite.org/c3ref/c_dbconfig_enable_fkey.html) for details.
#[repr(i32)]
#[allow(non_snake_case, non_camel_case_types)]
#[non_exhaustive]
pub enum DbConfig {
//SQLITE_DBCONFIG_MAINDBNAME = 1000, /* const char* */
//SQLITE_DBCONFIG_LOOKASIDE = 1001, /* void* int int */
+ /// Enable or disable the enforcement of foreign key constraints.
SQLITE_DBCONFIG_ENABLE_FKEY = 1002,
+ /// Enable or disable triggers.
SQLITE_DBCONFIG_ENABLE_TRIGGER = 1003,
+ /// Enable or disable the fts3_tokenizer() function which is part of the
+ /// FTS3 full-text search engine extension.
SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = 1004, // 3.12.0
//SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION = 1005,
+ /// In WAL mode, enable or disable the checkpoint operation before closing
+ /// the connection.
SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = 1006, // 3.16.2
- SQLITE_DBCONFIG_ENABLE_QPSG = 1007, // 3.20.0
- SQLITE_DBCONFIG_TRIGGER_EQP = 1008, // 3.22.0
+ /// Activates or deactivates the query planner stability guarantee (QPSG).
+ SQLITE_DBCONFIG_ENABLE_QPSG = 1007, // 3.20.0
+ /// Includes or excludes output for any operations performed by trigger
+ /// programs from the output of EXPLAIN QUERY PLAN commands.
+ SQLITE_DBCONFIG_TRIGGER_EQP = 1008, // 3.22.0
//SQLITE_DBCONFIG_RESET_DATABASE = 1009,
+ /// Activates or deactivates the "defensive" flag for a database connection.
SQLITE_DBCONFIG_DEFENSIVE = 1010, // 3.26.0
+ /// Activates or deactivates the "writable_schema" flag.
#[cfg(feature = "modern_sqlite")]
SQLITE_DBCONFIG_WRITABLE_SCHEMA = 1011, // 3.28.0
+ /// Activates or deactivates the legacy behavior of the ALTER TABLE RENAME
+ /// command.
#[cfg(feature = "modern_sqlite")]
SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1012, // 3.29
+ /// Activates or deactivates the legacy double-quoted string literal
+ /// misfeature for DML statements only.
#[cfg(feature = "modern_sqlite")]
SQLITE_DBCONFIG_DQS_DML = 1013, // 3.29.0
+ /// Activates or deactivates the legacy double-quoted string literal
+ /// misfeature for DDL statements.
#[cfg(feature = "modern_sqlite")]
SQLITE_DBCONFIG_DQS_DDL = 1014, // 3.29.0
+ /// Enable or disable views.
#[cfg(feature = "modern_sqlite")]
SQLITE_DBCONFIG_ENABLE_VIEW = 1015, // 3.30.0
+ /// Activates or deactivates the legacy file format flag.
#[cfg(feature = "modern_sqlite")]
SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1016, // 3.31.0
+ /// Tells SQLite to assume that database schemas (the contents of the
+ /// sqlite_master tables) are untainted by malicious content.
#[cfg(feature = "modern_sqlite")]
SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1017, // 3.31.0
}