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_open_files: i32
Max number of open files.
memory_budget: Option<usize>
Memory budget (in MiB) used for setting block cache size, write buffer size.
compaction: CompactionProfile
Compaction profile
columns: Option<u32>
Set number of columns
Methods
impl DatabaseConfig
[src]
impl DatabaseConfig
pub fn with_columns(columns: Option<u32>) -> Self
[src]
pub fn with_columns(columns: Option<u32>) -> Self
Create new DatabaseConfig
with default parameters and specified set of columns.
Note that cache sizes must be explicitly set.
pub fn memory_budget(&self) -> usize
[src]
pub fn memory_budget(&self) -> usize
pub fn memory_budget_per_col(&self) -> usize
[src]
pub fn memory_budget_per_col(&self) -> usize
Trait Implementations
impl Clone for DatabaseConfig
[src]
impl Clone for DatabaseConfig
fn clone(&self) -> DatabaseConfig
[src]
fn clone(&self) -> DatabaseConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for DatabaseConfig
[src]
impl Default for DatabaseConfig
fn default() -> DatabaseConfig
[src]
fn default() -> DatabaseConfig
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for DatabaseConfig
impl Send for DatabaseConfig
impl Sync for DatabaseConfig
impl Sync for DatabaseConfig