pub struct Options {
pub path: PathBuf,
pub columns: Vec<ColumnOptions>,
pub sync_wal: bool,
pub sync_data: bool,
pub stats: bool,
pub salt: Option<[u8; 32]>,
}Expand description
Database configuration.
Fields§
§path: PathBufDatabase path.
columns: Vec<ColumnOptions>Column settings
sync_wal: boolfsync WAL to disk before committing any changes. Provides extra consistency guarantees. On by default.
sync_data: boolfsync/msync data to disk before removing logs. Provides crash resistance guarantee. On by default.
stats: boolCollect database statistics. May have effect on performance.
salt: Option<[u8; 32]>Override salt value. If None is specified salt is loaded from metadata
or randomly generated when creating a new database.