[][src]Struct simpledb::Options

pub struct Options {
    pub rocksdb_options: RocksDBOptions,
    pub sorted_list_compact_deletes_count: u32,
    pub delete_meta_when_empty: bool,
}

Options for open a database.

Fields

rocksdb_options: RocksDBOptions

RocksDB options.

sorted_list_compact_deletes_count: u32

For sorted list data type, run RocksDB compact operation when every specific deletes count. This is a performance optimization strategy.

delete_meta_when_empty: bool

Auto delete the key meta when items count is 0, the key ID will be different for the next time when reuse the same key.

Trait Implementations

impl Default for Options[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.