pub enum JournalPolicy {
EstablishWal,
PreserveExisting,
RequireExistingWal,
}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. Ordinary primary traffic establishes WAL; online
administration instead requires WAL to have been established already.
PreserveExisting
Leave the file’s journal mode exactly as found.
RequireExistingWal
Require established WAL without attempting a conversion.
Trait Implementations§
Source§impl Clone for JournalPolicy
impl Clone for JournalPolicy
impl 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 Forget for JournalPolicy
impl Freeze for JournalPolicy
impl Move 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