pub struct DatabaseConfig {
pub path: PathBuf,
pub page_size: u32,
pub cache_capacity: usize,
pub wal_sync_mode: SyncMode,
pub temporal_tracking_enabled: bool,
pub version_storage_enabled: bool,
}Expand description
Configuration for opening or creating a CypherLite database.
Fields§
§path: PathBufPath to the main database file (.cyl).
page_size: u32Page size in bytes (always 4096).
cache_capacity: usizeNumber of pages in the buffer pool cache.
wal_sync_mode: SyncModeWAL synchronization mode.
temporal_tracking_enabled: boolEnable automatic _created_at / _updated_at timestamp tracking (default: true).
version_storage_enabled: boolEnable version storage for pre-update snapshots (default: true when temporal tracking enabled).
Implementations§
Trait Implementations§
Source§impl Clone for DatabaseConfig
impl Clone for DatabaseConfig
Source§fn clone(&self) -> DatabaseConfig
fn clone(&self) -> DatabaseConfig
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 moreSource§impl Debug for DatabaseConfig
impl Debug for DatabaseConfig
Auto Trait Implementations§
impl Freeze for DatabaseConfig
impl RefUnwindSafe for DatabaseConfig
impl Send for DatabaseConfig
impl Sync for DatabaseConfig
impl Unpin for DatabaseConfig
impl UnsafeUnpin for DatabaseConfig
impl UnwindSafe for DatabaseConfig
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