Merge pull request #1336 from gwenn/3.42.0

Add new constants introduced by SQLite 3.42.0
This commit is contained in:
gwenn 2023-05-31 11:34:38 +02:00 committed by GitHub
commit 581819f962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -61,6 +61,12 @@ pub enum DbConfig {
/// sqlite_master tables) are untainted by malicious content. /// sqlite_master tables) are untainted by malicious content.
#[cfg(feature = "modern_sqlite")] #[cfg(feature = "modern_sqlite")]
SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1017, // 3.31.0 SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1017, // 3.31.0
/// Sets or clears a flag that enables collection of the sqlite3_stmt_scanstatus_v2() statistics
#[cfg(feature = "modern_sqlite")]
SQLITE_DBCONFIG_STMT_SCANSTATUS = 1018, // 3.42.0
/// Changes the default order in which tables and indexes are scanned
#[cfg(feature = "modern_sqlite")]
SQLITE_DBCONFIG_REVERSE_SCANORDER = 1019, // 3.42.0
} }
impl Connection { impl Connection {

View File

@ -195,6 +195,8 @@ pub enum VTabConfig {
Innocuous = 2, Innocuous = 2,
/// Equivalent to SQLITE_VTAB_DIRECTONLY /// Equivalent to SQLITE_VTAB_DIRECTONLY
DirectOnly = 3, DirectOnly = 3,
/// Equivalent to SQLITE_VTAB_USES_ALL_SCHEMAS
UsesAllSchemas = 4,
} }
/// `feature = "vtab"` /// `feature = "vtab"`