Struct ethcore_util::kvdb::DatabaseConfig [] [src]

pub struct DatabaseConfig {
    pub max_open_files: i32,
    pub cache_sizes: HashMap<Option<u32>, usize>,
    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.

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