[][src]Struct db::kv::DatabaseConfig

pub struct DatabaseConfig {
    pub max_open_files: i32,
    pub cache_sizes: HashMap<Option<u32>, usize>,
    pub bloom_filters: HashMap<Option<u32>, u8>,
    pub compaction: CompactionProfile,
    pub columns: Option<u32>,
    pub wal: bool,
}

Database configuration

Fields

Max number of open files.

Cache sizes (in MiB) for specific columns.

Specific number of bloom filter bits, if any

Compaction profile

Set number of columns

Should we keep WAL enabled?

Methods

impl DatabaseConfig
[src]

Create new DatabaseConfig with default parameters and specified set of columns. Note that cache sizes must be explicitly set.

Set the column cache size in MiB.

Trait Implementations

impl Clone for DatabaseConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for DatabaseConfig
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for DatabaseConfig

impl Sync for DatabaseConfig

Blanket Implementations

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

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T