DbConfig

Enum DbConfig 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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

Available on crate feature modern_sqlite only.

Activates or deactivates the writable_schema flag.

§

SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1_012

Available on crate feature modern_sqlite only.

Activates or deactivates the legacy behavior of the ALTER TABLE RENAME command.

§

SQLITE_DBCONFIG_DQS_DML = 1_013

Available on crate feature modern_sqlite only.

Activates or deactivates the legacy double-quoted string literal misfeature for DML statements only.

§

SQLITE_DBCONFIG_DQS_DDL = 1_014

Available on crate feature modern_sqlite only.

Activates or deactivates the legacy double-quoted string literal misfeature for DDL statements.

§

SQLITE_DBCONFIG_ENABLE_VIEW = 1_015

Available on crate feature modern_sqlite only.

Enable or disable views.

§

SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1_016

Available on crate feature modern_sqlite only.

Activates or deactivates the legacy file format flag.

§

SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1_017

Available on crate feature 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

Available on crate feature modern_sqlite only.

Sets or clears a flag that enables collection of the sqlite3_stmt_scanstatus_v2() statistics

§

SQLITE_DBCONFIG_REVERSE_SCANORDER = 1_019

Available on crate feature modern_sqlite only.

Changes the default order in which tables and indexes are scanned

§

SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE = 1_020

Available on crate feature 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

Available on crate feature 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

Available on crate feature modern_sqlite only.

Enables or disables the ability to include comments in SQL text.

Trait Implementations§

Source§

impl Clone for DbConfig

Source§

fn clone(&self) -> DbConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DbConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for DbConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

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 bytes
  • SQLITE_DBCONFIG_ENABLE_TRIGGER: 0 bytes
  • SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER: 0 bytes
  • SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE: 0 bytes
  • SQLITE_DBCONFIG_ENABLE_QPSG: 0 bytes
  • SQLITE_DBCONFIG_TRIGGER_EQP: 0 bytes
  • SQLITE_DBCONFIG_RESET_DATABASE: 0 bytes
  • SQLITE_DBCONFIG_DEFENSIVE: 0 bytes
  • SQLITE_DBCONFIG_WRITABLE_SCHEMA: 0 bytes
  • SQLITE_DBCONFIG_LEGACY_ALTER_TABLE: 0 bytes
  • SQLITE_DBCONFIG_DQS_DML: 0 bytes
  • SQLITE_DBCONFIG_DQS_DDL: 0 bytes
  • SQLITE_DBCONFIG_ENABLE_VIEW: 0 bytes
  • SQLITE_DBCONFIG_LEGACY_FILE_FORMAT: 0 bytes
  • SQLITE_DBCONFIG_TRUSTED_SCHEMA: 0 bytes
  • SQLITE_DBCONFIG_STMT_SCANSTATUS: 0 bytes
  • SQLITE_DBCONFIG_REVERSE_SCANORDER: 0 bytes
  • SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE: 0 bytes
  • SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE: 0 bytes
  • SQLITE_DBCONFIG_ENABLE_COMMENTS: 0 bytes