Struct kvdb_rocksdb::DatabaseConfig[][src]

pub struct DatabaseConfig {
    pub max_open_files: i32,
    pub memory_budget: Option<usize>,
    pub compaction: CompactionProfile,
    pub columns: Option<u32>,
}

Database configuration

Fields

Max number of open files.

Memory budget (in MiB) used for setting block cache size, write buffer size.

Compaction profile

Set number of columns

Methods

impl DatabaseConfig
[src]

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

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