pub enum OperatingMode {
Compatibility,
Native,
}Expand description
Database operating mode (§7.10).
Selectable via PRAGMA fsqlite.mode = compatibility | native.
Per-database (not per-connection). Default: Compatibility.
Variants§
Compatibility
Standard SQLite WAL format. Legacy reader interop, single coordinator
holds WAL_WRITE_LOCK. Sidecars (.wal-fec, .db-fec) present but
core .db stays compatible when checkpointed.
Native
ECS-based storage. CommitCapsules + CommitMarkers, no legacy
interop, full concurrent writes.
Implementations§
Source§impl OperatingMode
impl OperatingMode
Sourcepub fn from_pragma(s: &str) -> Option<Self>
pub fn from_pragma(s: &str) -> Option<Self>
Parse from the PRAGMA string value (case-insensitive).
Sourcepub const fn legacy_readers_allowed(self) -> bool
pub const fn legacy_readers_allowed(self) -> bool
Whether legacy SQLite readers can attach.
Trait Implementations§
Source§impl Clone for OperatingMode
impl Clone for OperatingMode
Source§fn clone(&self) -> OperatingMode
fn clone(&self) -> OperatingMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperatingMode
impl Debug for OperatingMode
Source§impl Default for OperatingMode
impl Default for OperatingMode
Source§fn default() -> OperatingMode
fn default() -> OperatingMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OperatingMode
impl<'de> Deserialize<'de> for OperatingMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OperatingMode
impl Display for OperatingMode
Source§impl Hash for OperatingMode
impl Hash for OperatingMode
Source§impl PartialEq for OperatingMode
impl PartialEq for OperatingMode
Source§impl Serialize for OperatingMode
impl Serialize for OperatingMode
impl Copy for OperatingMode
impl Eq for OperatingMode
impl StructuralPartialEq for OperatingMode
Auto Trait Implementations§
impl Freeze for OperatingMode
impl RefUnwindSafe for OperatingMode
impl Send for OperatingMode
impl Sync for OperatingMode
impl Unpin for OperatingMode
impl UnsafeUnpin for OperatingMode
impl UnwindSafe for OperatingMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).