pub struct Database { /* private fields */ }
Expand description

Key-Value database.

Implementations

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

Executes the destructor for this type. Read more

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.