Struct exonum_leveldb::database::options::Options [] [src]

pub struct Options {
    pub create_if_missing: bool,
    pub error_if_exists: bool,
    pub paranoid_checks: bool,
    pub write_buffer_size: Option<size_t>,
    pub max_open_files: Option<i32>,
    pub block_size: Option<size_t>,
    pub block_restart_interval: Option<i32>,
    pub compression: Compression,
    pub cache: Option<Cache>,
}

Options to consider when opening a new or pre-existing database.

Note that in contrast to the leveldb C API, the Comparator is not passed using this structure.

For more detailed explanations, consider the leveldb documentation

Fields

create the database if missing

default: false

report an error if the DB already exists instead of opening.

default: false

paranoid checks make the database report an error as soon as corruption is detected.

default: false

Override the size of the write buffer to use.

default: None

Override the max number of open files.

default: None

Override the size of the blocks leveldb uses for writing and caching.

default: None

Override the interval between restart points.

default: None

Define whether leveldb should write compressed or not.

default: Compression::No

A cache to use during read operations.

default: None

Methods

impl Options
[src]

Create a new Options struct with default settings.

Trait Implementations

impl Default for Options
[src]

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