pub struct HanzoDbConfig {
pub backend: DatabaseBackend,
pub path: Option<PathBuf>,
pub url: Option<String>,
pub pool_size: usize,
pub enable_wal: bool,
pub cache_size: Option<usize>,
pub enable_compression: bool,
}Expand description
Unified database configuration
Fields§
§backend: DatabaseBackendSelected backend
path: Option<PathBuf>Database path (for file-based backends)
url: Option<String>Connection URL (for network backends)
pool_size: usizeConnection pool size
enable_wal: boolEnable write-ahead logging
cache_size: Option<usize>Cache size in bytes
enable_compression: boolEnable compression
Trait Implementations§
Source§impl Clone for HanzoDbConfig
impl Clone for HanzoDbConfig
Source§fn clone(&self) -> HanzoDbConfig
fn clone(&self) -> HanzoDbConfig
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 HanzoDbConfig
impl Debug for HanzoDbConfig
Auto Trait Implementations§
impl Freeze for HanzoDbConfig
impl RefUnwindSafe for HanzoDbConfig
impl Send for HanzoDbConfig
impl Sync for HanzoDbConfig
impl Unpin for HanzoDbConfig
impl UnwindSafe for HanzoDbConfig
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