pub struct WalConfig {
pub synchronous_mode: WalSynchronousMode,
pub journal_mode: WalJournalMode,
pub checkpoint_interval: u64,
pub checkpoint_size_mb: u64,
pub wal_autocheckpoint: u32,
pub cache_size_kb: i32,
pub temp_store: TempStoreMode,
pub mmap_size_mb: u64,
pub page_size: u32,
pub auto_vacuum: AutoVacuumMode,
}Expand description
WAL optimization configuration
Fields§
§synchronous_mode: WalSynchronousMode§journal_mode: WalJournalMode§checkpoint_interval: u64§checkpoint_size_mb: u64§wal_autocheckpoint: u32§cache_size_kb: i32§temp_store: TempStoreMode§mmap_size_mb: u64§page_size: u32§auto_vacuum: AutoVacuumModeImplementations§
Source§impl WalConfig
impl WalConfig
Sourcepub fn high_performance() -> Self
pub fn high_performance() -> Self
High-performance configuration for write-heavy workloads
Sourcepub fn memory_optimized() -> Self
pub fn memory_optimized() -> Self
Memory-optimized configuration for resource-constrained environments
Sourcepub fn safety_first() -> Self
pub fn safety_first() -> Self
Safety-first configuration for critical data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WalConfig
impl RefUnwindSafe for WalConfig
impl Send for WalConfig
impl Sync for WalConfig
impl Unpin for WalConfig
impl UnwindSafe for WalConfig
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: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more