[][src]Module rocks::db

A DB is a persistent ordered map from keys to values.

Structs

ColumnFamily

An opened column family, owned for RAII style management

ColumnFamilyDescriptor

Descriptor of a column family, name and the options

ColumnFamilyHandle

Handle for a opened column family

DB

A DB is a persistent ordered map from keys to values.

DBRef

Borrowed DB handle

Constants

DEFAULT_COLUMN_FAMILY_NAME

Traits

AsCompactRange

Functions

destroy_db

Destroy the contents of the specified database.

repair_db

options These options will be used for the database and for ALL column families encountered during the repair.

repair_db_with_cf

If a DB cannot be opened, you may attempt to call this method to resurrect as much of the contents of the database as possible. Some data may be lost, so be careful when calling this function on a database that contains important information.

repair_db_with_unknown_cf_opts

unknown_cf_opts Options for column families encountered during the repair that were not specified in column_families.