Struct parity_db::Options [−][src]
Database configuration.
Fields
path: PathBuf
Database path.
columns: Vec<ColumnOptions>
Column settings
sync: bool
fsync WAL to disk before commiting any changes. Provides extra consistency guarantees. Off by default.
stats: bool
Collect database statistics. May have effect on performance.
Implementations
impl Options
[src][−]
pub fn with_columns(path: &Path, num_columns: u8) -> Options
[src]
pub fn write_metadata(&self, path: &Path, salt: &[u8; 32]) -> Result<()>
[src]
pub fn load_and_validate_metadata(&self) -> Result<Option<[u8; 32]>>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,