#[non_exhaustive]pub enum JournalMode {
Delete,
Wal,
}Expand description
The SQLite journal mode.
You can change the journal mode of a connection with Connection::set_journal_mode.
See the SQLite documentation on journal modes for details.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Delete
The DELETE journal mode.
This is the default SQLite journal mode.
Wal
The WAL journal mode.
Write-ahead logging can improve performance and concurrency, but comes with caveats. See the SQLite documentation on write-ahead logging for details.
Bench testing has found that enabling write-ahead logging for LiteboxFS improves read and write performance for small files, but degrades performance for large files. Your results may vary, so if performance is critical, consider benchmarking your workload to see whether enabling write-ahead logging makes sense.
Trait Implementations§
Source§impl Clone for JournalMode
impl Clone for JournalMode
Source§fn clone(&self) -> JournalMode
fn clone(&self) -> JournalMode
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 moreSource§impl Debug for JournalMode
impl Debug for JournalMode
Source§impl Hash for JournalMode
impl Hash for JournalMode
Source§impl PartialEq for JournalMode
impl PartialEq for JournalMode
Source§fn eq(&self, other: &JournalMode) -> bool
fn eq(&self, other: &JournalMode) -> bool
Tests for
self and other values to be equal, and is used by ==.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