#[non_exhaustive]pub enum FileControl<'p> {
SizeHint(&'p mut sqlite3_int64),
SizeLimit(&'p mut sqlite3_int64),
ChunkSize(&'p mut c_int),
PersistWal(&'p mut c_int),
PowerSafeOverwrite(&'p mut c_int),
MMapSize(&'p mut sqlite3_int64),
HasMoved(&'p mut c_int),
LockTimeout(&'p mut c_int),
BlockOnConnect(&'p mut c_int),
DataVersion(&'p mut c_uint),
ReserveBytes(&'p mut c_int),
}Expand description
Standard File Control Opcodes
See https://sqlite.org/c3ref/c_fcntl_begin_atomic_write.html for explanations of each.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SizeHint(&'p mut sqlite3_int64)
Give the VFS layer a hint of how large the database file will grow to be during the current transaction.
SizeLimit(&'p mut sqlite3_int64)
Used by in-memory VFS that implements sqlite3_deserialize() to set an upper bound on the size of the in-memory database.
ChunkSize(&'p mut c_int)
Used to request that the VFS extends and truncates the database file in chunks of a size specified by the user.
PersistWal(&'p mut c_int)
Used to set or query the persistent Write Ahead Log setting.
PowerSafeOverwrite(&'p mut c_int)
Used to set or query the persistent “powersafe-overwrite” or “PSOW” setting.
MMapSize(&'p mut sqlite3_int64)
Used to query or set the maximum number of bytes that will be used for memory-mapped I/O.
HasMoved(&'p mut c_int)
Whether or not the file has been renamed, moved, or deleted since it was first opened.
LockTimeout(&'p mut c_int)
Used to configure a VFS to block for up to M milliseconds before failing when attempting to obtain a file lock using the xLock or xShmLock methods of the VFS.
BlockOnConnect(&'p mut c_int)
Used to configure the VFS to block when taking a SHARED lock to connect to a wal mode database.
DataVersion(&'p mut c_uint)
Detect changes to a database file.
ReserveBytes(&'p mut c_int)
Used to query or set the reserve bytes