Struct kvdb_memorydb::InMemory[][src]

pub struct InMemory { /* fields omitted */ }

A key-value database fulfilling the KeyValueDB trait, living in memory. This is generally intended for tests and is not particularly optimized.

Trait Implementations

impl Default for InMemory
[src]

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

impl KeyValueDB for InMemory
[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.

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.

Write a transaction of changes to the backing store.

Auto Trait Implementations

impl Send for InMemory

impl Sync for InMemory