Enum rusqlite::config::DbConfig

source ·
#[non_exhaustive]
#[repr(i32)]
pub enum DbConfig {
Show 17 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,
}
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

Activates or deactivates the “writable_schema” flag.

§

SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1_012

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

§

SQLITE_DBCONFIG_DQS_DML = 1_013

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

§

SQLITE_DBCONFIG_DQS_DDL = 1_014

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

§

SQLITE_DBCONFIG_ENABLE_VIEW = 1_015

Enable or disable views.

§

SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1_016

Activates or deactivates the legacy file format flag.

§

SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1_017

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

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

§

SQLITE_DBCONFIG_REVERSE_SCANORDER = 1_019

Changes the default order in which tables and indexes are scanned

Trait Implementations§

source§

impl Clone for DbConfig

source§

fn clone(&self) -> DbConfig

Returns a copy 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§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

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

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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,

§

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>,

§

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>,

§

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.