Struct rocksdb::rocksdb::DB [] [src]

pub struct DB {
    // some fields omitted
}

Methods

impl DB
[src]

fn open_default(path: &str) -> Result<DBString>

fn open(opts: &Options, path: &str) -> Result<DBString>

fn open_cf(opts: &Options, path: &str, cfs: &[&str]) -> Result<DBString>

fn destroy(opts: &Options, path: &str) -> Result<()String>

fn repair(opts: Options, path: &str) -> Result<()String>

fn write(&self, batch: WriteBatch) -> Result<()String>

fn get(&self, key: &[u8]) -> Result<Option<DBVector>, String>

fn get_cf(&self, cf: DBCFHandle, key: &[u8]) -> Result<Option<DBVector>, String>

fn create_cf(&mut self, name: &str, opts: &Options) -> Result<DBCFHandleString>

fn drop_cf(&mut self, name: &str) -> Result<()String>

fn cf_handle(&self, name: &str) -> Option<&DBCFHandle>

fn iterator(&self) -> DBIterator

fn iterator_cf(&self, cf_handle: DBCFHandle) -> Result<DBIteratorString>

fn snapshot(&self) -> Snapshot

Trait Implementations

impl Send for DB
[src]

impl Sync for DB
[src]

impl Writable for DB
[src]

fn put(&self, key: &[u8], value: &[u8]) -> Result<()String>

fn put_cf(&self, cf: DBCFHandle, key: &[u8], value: &[u8]) -> Result<()String>

fn merge(&self, key: &[u8], value: &[u8]) -> Result<()String>

fn merge_cf(&self, cf: DBCFHandle, key: &[u8], value: &[u8]) -> Result<()String>

fn delete(&self, key: &[u8]) -> Result<()String>

fn delete_cf(&self, cf: DBCFHandle, key: &[u8]) -> Result<()String>

impl Drop for DB
[src]

fn drop(&mut self)

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