[][src]Struct parity_db::Options

pub struct Options {
    pub path: PathBuf,
    pub columns: Vec<ColumnOptions>,
    pub sync: bool,
    pub stats: bool,
}

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.

Methods

impl Options[src]

pub fn with_columns(path: &Path, num_columns: u8) -> Options[src]

pub fn write_metadata(&self, path: &Path) -> Result<()>[src]

pub fn validate_metadata(&self) -> Result<()>[src]

Trait Implementations

impl Clone for Options[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.