Struct ethcore_util::kvdb::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.

Creates 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.

Trait Implementations

impl Drop for Database
[src]

A method called when the value goes out of scope. Read more