Enum JournalMode
pub enum JournalMode {
Wal,
Wal2,
}Expand description
The WAL-family journal mode an opener ensures on a fresh file (design 306 D5).
Under the default Wal request an existing wal or wal2
file keeps its mode (D3 — the opener accepts both). An explicit
Wal2 request is a requirement, not a preference: the
opener attempts the conversion and fails loudly if the file does not end up in
wal2 — the daemon’s fleet contract (followers, backups) must never be silently
unhonored.
Variants§
Wal
Ordinary WAL — the default. The database file stays openable by any stock
SQLite build (sqlite3 CLI, better-sqlite3, …), the design-306 §8.2 prize.
Wal2
The bedrock build’s dual-log wal2 — the daemon’s explicit opt-in (checkpoint
headroom under sustained write load, and the follower/backup fleet contract;
see docs/SQLITE_WAL2.md).
Implementations§
§impl JournalMode
impl JournalMode
Trait Implementations§
§impl Clone for JournalMode
impl Clone for JournalMode
§fn clone(&self) -> JournalMode
fn clone(&self) -> JournalMode
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 more§impl Debug for JournalMode
impl Debug for JournalMode
§impl Default for JournalMode
impl Default for JournalMode
§fn default() -> JournalMode
fn default() -> JournalMode
Returns the “default value” for a type. Read more
§impl PartialEq for JournalMode
impl PartialEq for JournalMode
impl Copy for JournalMode
impl Eq for JournalMode
impl StructuralPartialEq for JournalMode
Auto Trait Implementations§
impl Freeze for JournalMode
impl RefUnwindSafe for JournalMode
impl Send for JournalMode
impl Sync for JournalMode
impl Unpin for JournalMode
impl UnsafeUnpin for JournalMode
impl UnwindSafe for JournalMode
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.