Struct kvdb_rocksdb::Database[][src]

pub struct Database { /* fields omitted */ }

Key-Value database.

Methods

impl Database
[src]

Open database with default settings.

Open database file. Creates if it does not exist.

Helper to create new transaction for this database.

Commit transaction to database.

Commit buffered changes to database.

Commit transaction to database.

Get value by key.

Get value by partial key. Prefix size should match configured prefix size. Only searches flushed values.

Get database iterator for flushed data.

Restore the database from a copy at given path.

The number of non-default column families.

Drop a column family.

Add a column family.

Trait Implementations

impl KeyValueDB for Database
[src]

Get a value by key.

Get a value by partial key. Only works for flushed data.

Write a transaction of changes to the buffer.

Write a transaction of changes to the backing store.

Flush all buffered data.

Iterate over flushed data for a given column.

Iterate over flushed data for a given column, starting from a given prefix.

Attempt to replace this database with a new one located at the given path.

Helper to create a new transaction.

impl Drop for Database
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for Database

impl Sync for Database