#[non_exhaustive]#[repr(i32)]pub enum DbConfig {
Show 20 variants
SQLITE_DBCONFIG_ENABLE_FKEY = 1_002,
SQLITE_DBCONFIG_ENABLE_TRIGGER = 1_003,
SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = 1_004,
SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = 1_006,
SQLITE_DBCONFIG_ENABLE_QPSG = 1_007,
SQLITE_DBCONFIG_TRIGGER_EQP = 1_008,
SQLITE_DBCONFIG_RESET_DATABASE = 1_009,
SQLITE_DBCONFIG_DEFENSIVE = 1_010,
SQLITE_DBCONFIG_WRITABLE_SCHEMA = 1_011,
SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1_012,
SQLITE_DBCONFIG_DQS_DML = 1_013,
SQLITE_DBCONFIG_DQS_DDL = 1_014,
SQLITE_DBCONFIG_ENABLE_VIEW = 1_015,
SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1_016,
SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1_017,
SQLITE_DBCONFIG_STMT_SCANSTATUS = 1_018,
SQLITE_DBCONFIG_REVERSE_SCANORDER = 1_019,
SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE = 1_020,
SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE = 1_021,
SQLITE_DBCONFIG_ENABLE_COMMENTS = 1_022,
}
Expand description
Database Connection Configuration Options See Database Connection Configuration Options for details.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SQLITE_DBCONFIG_ENABLE_FKEY = 1_002
Enable or disable the enforcement of foreign key constraints.
SQLITE_DBCONFIG_ENABLE_TRIGGER = 1_003
Enable or disable triggers.
SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = 1_004
Enable or disable the fts3_tokenizer()
function which is part of the
FTS3 full-text search engine extension.
SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = 1_006
In WAL mode, enable or disable the checkpoint operation before closing the connection.
SQLITE_DBCONFIG_ENABLE_QPSG = 1_007
Activates or deactivates the query planner stability guarantee (QPSG).
SQLITE_DBCONFIG_TRIGGER_EQP = 1_008
Includes or excludes output for any operations performed by trigger programs from the output of EXPLAIN QUERY PLAN commands.
SQLITE_DBCONFIG_RESET_DATABASE = 1_009
Activates or deactivates the “reset” flag for a database connection. Run VACUUM with this flag set to reset the database.
SQLITE_DBCONFIG_DEFENSIVE = 1_010
Activates or deactivates the “defensive” flag for a database connection.
SQLITE_DBCONFIG_WRITABLE_SCHEMA = 1_011
modern_sqlite
only.Activates or deactivates the writable_schema
flag.
SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1_012
modern_sqlite
only.Activates or deactivates the legacy behavior of the ALTER TABLE RENAME command.
SQLITE_DBCONFIG_DQS_DML = 1_013
modern_sqlite
only.Activates or deactivates the legacy double-quoted string literal misfeature for DML statements only.
SQLITE_DBCONFIG_DQS_DDL = 1_014
modern_sqlite
only.Activates or deactivates the legacy double-quoted string literal misfeature for DDL statements.
SQLITE_DBCONFIG_ENABLE_VIEW = 1_015
modern_sqlite
only.Enable or disable views.
SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1_016
modern_sqlite
only.Activates or deactivates the legacy file format flag.
SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1_017
modern_sqlite
only.Tells SQLite to assume that database schemas (the contents of the
sqlite_master
tables) are untainted by malicious content.
SQLITE_DBCONFIG_STMT_SCANSTATUS = 1_018
modern_sqlite
only.Sets or clears a flag that enables collection of the
sqlite3_stmt_scanstatus_v2()
statistics
SQLITE_DBCONFIG_REVERSE_SCANORDER = 1_019
modern_sqlite
only.Changes the default order in which tables and indexes are scanned
SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE = 1_020
modern_sqlite
only.Enables or disables the ability of the ATTACH DATABASE SQL command to create a new database file if the database filed named in the ATTACH command does not already exist.
SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE = 1_021
modern_sqlite
only.Enables or disables the ability of the ATTACH DATABASE SQL command to open a database for writing.
SQLITE_DBCONFIG_ENABLE_COMMENTS = 1_022
modern_sqlite
only.Enables or disables the ability to include comments in SQL text.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DbConfig
impl RefUnwindSafe for DbConfig
impl Send for DbConfig
impl Sync for DbConfig
impl Unpin for DbConfig
impl UnwindSafe for DbConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
SQLITE_DBCONFIG_ENABLE_FKEY
: 0 bytesSQLITE_DBCONFIG_ENABLE_TRIGGER
: 0 bytesSQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER
: 0 bytesSQLITE_DBCONFIG_NO_CKPT_ON_CLOSE
: 0 bytesSQLITE_DBCONFIG_ENABLE_QPSG
: 0 bytesSQLITE_DBCONFIG_TRIGGER_EQP
: 0 bytesSQLITE_DBCONFIG_RESET_DATABASE
: 0 bytesSQLITE_DBCONFIG_DEFENSIVE
: 0 bytesSQLITE_DBCONFIG_WRITABLE_SCHEMA
: 0 bytesSQLITE_DBCONFIG_LEGACY_ALTER_TABLE
: 0 bytesSQLITE_DBCONFIG_DQS_DML
: 0 bytesSQLITE_DBCONFIG_DQS_DDL
: 0 bytesSQLITE_DBCONFIG_ENABLE_VIEW
: 0 bytesSQLITE_DBCONFIG_LEGACY_FILE_FORMAT
: 0 bytesSQLITE_DBCONFIG_TRUSTED_SCHEMA
: 0 bytesSQLITE_DBCONFIG_STMT_SCANSTATUS
: 0 bytesSQLITE_DBCONFIG_REVERSE_SCANORDER
: 0 bytesSQLITE_DBCONFIG_ENABLE_ATTACH_CREATE
: 0 bytesSQLITE_DBCONFIG_ENABLE_ATTACH_WRITE
: 0 bytesSQLITE_DBCONFIG_ENABLE_COMMENTS
: 0 bytes