pub enum WriteContact {
ReadWrite,
ReadOnlyWalSidecars,
}Expand description
The strongest filesystem no-write guarantee an open under a profile can make. Diagnostic surfaces (doctor) report from this instead of promising a zero-touch open that SQLite cannot deliver.
Variants§
ReadWrite
The profile writes: mutating pragmas at open (journal-mode conversion) and/or subsequent DDL/DML.
ReadOnlyWalSidecars
Logical database content is never modified, but SQLite may still
create or update the -wal/-shm sidecar files when the database is
in WAL mode: coherent WAL reads require the shared-memory index, and
rusqlite offers no way around that short of immutable=1, which is
only sound when no live writer can exist and is therefore not used
here. On truly read-only media a WAL database whose sidecars are
absent fails to read (typed SQLite error) instead of being mutated;
rollback-journal databases are read with no sidecar contact at all.
Trait Implementations§
Source§impl Clone for WriteContact
impl Clone for WriteContact
Source§fn clone(&self) -> WriteContact
fn clone(&self) -> WriteContact
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more