Struct lmdb_rs::core::EnvBuilder
[−]
[src]
pub struct EnvBuilder { /* fields omitted */ }
Constructs environment with settigs which couldn't be
changed after opening. By default it tries to create
corresponding dir if it doesn't exist, use autocreate_dir()
to override that behavior
Methods
impl EnvBuilder
[src]
fn new() -> EnvBuilder
fn flags(self, flags: EnvCreateFlags) -> EnvBuilder
Sets environment flags
fn max_readers(self, max_readers: usize) -> EnvBuilder
Sets max concurrent readers operating on environment
fn max_dbs(self, max_dbs: usize) -> EnvBuilder
Set max number of databases
fn map_size(self, map_size: u64) -> EnvBuilder
Sets max environment size, i.e. size in memory/disk of all data
fn autocreate_dir(self, autocreate_dir: bool) -> EnvBuilder
Sets whetever lmdb-rs
should try to autocreate dir with default
permissions on opening (default is true)
fn open<P: AsRef<Path>>(self, path: P, perms: u32) -> MdbResult<Environment>
Opens environment in specified path
Trait Implementations
impl Copy for EnvBuilder
[src]
impl Clone for EnvBuilder
[src]
fn clone(&self) -> EnvBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more