pub enum JournalPolicy {
EstablishWal,
PreserveExisting,
}Expand description
What an open under a profile does to the file’s journal mode.
Naming this makes the durable-writer rule checkable instead of accidental:
a profile added later has to choose a policy, and cannot inherit
“not Primary, therefore no WAL” from the shape of a match arm.
Variants§
EstablishWal
Convert-or-confirm journal_mode=WAL at open, verified against the
mode SQLite reports back, and fail the open when WAL cannot be
established. Every profile that serves durable read-write traffic is
here; a store that cannot get WAL must not run degraded.
PreserveExisting
Leave the file’s journal mode exactly as found.
Trait Implementations§
Source§impl Clone for JournalPolicy
impl Clone for JournalPolicy
Source§fn clone(&self) -> JournalPolicy
fn clone(&self) -> JournalPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JournalPolicy
Source§impl Debug for JournalPolicy
impl Debug for JournalPolicy
impl Eq for JournalPolicy
Source§impl PartialEq for JournalPolicy
impl PartialEq for JournalPolicy
impl StructuralPartialEq for JournalPolicy
Auto Trait Implementations§
impl Freeze for JournalPolicy
impl RefUnwindSafe for JournalPolicy
impl Send for JournalPolicy
impl Sync for JournalPolicy
impl Unpin for JournalPolicy
impl UnsafeUnpin for JournalPolicy
impl UnwindSafe for JournalPolicy
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