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

pub struct DB { /* fields omitted */ }

Implementations

impl DB[src]

pub fn open_default(path: &str) -> Result<DB, String>[src]

pub fn open(opts: &Options, path: &str) -> Result<DB, String>[src]

pub fn open_cf(
    opts: &Options,
    path: &str,
    cfs: &[&str],
    cf_opts: &[Options]
) -> Result<DB, String>
[src]

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

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

pub fn write_opt(
    &self,
    batch: WriteBatch,
    writeopts: &WriteOptions
) -> Result<(), String>
[src]

pub fn write(&self, batch: WriteBatch) -> Result<(), String>[src]

pub fn get_opt(
    &self,
    key: &[u8],
    readopts: &ReadOptions
) -> Result<Option<DBVector>, String>
[src]

pub fn get_int_property(&self, prop: &str) -> u64[src]

Query a RocksDB instance for a "property" that returns a numeric value. The available properties are listed here but note that only properties returning a numeric value can be queried using this function.

pub fn get_int_property_cf(&self, cf: Column, prop: &str) -> u64[src]

Query a RocksDB instance scoped to a column family for a "property" that returns a numeric value. The available properties are listed here but note that only properties returning a numeric value can be queried using this function.

pub fn get_property_value(&self, prop: &str) -> String[src]

Query a RocksDB instance for a "property" value. The available properties are listed here

pub fn get_property_value_cf(&self, cf: Column, prop: &str) -> String[src]

Query a RocksDB instance scoped to a column family for a "property" value. The available properties are listed here

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

pub fn get_cf_opt(
    &self,
    cf: Column,
    key: &[u8],
    readopts: &ReadOptions
) -> Result<Option<DBVector>, String>
[src]

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

pub fn create_cf(
    &mut self,
    name: &str,
    opts: &Options
) -> Result<Column, String>
[src]

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

pub fn cf_handle(&self, name: &str) -> Option<Column>[src]

pub fn iterator(&self, mode: IteratorMode<'_>) -> DBIterator

Notable traits for DBIterator

impl Iterator for DBIterator type Item = (Box<[u8]>, Box<[u8]>);
[src]

pub fn iterator_opt(
    &self,
    mode: IteratorMode<'_>,
    opts: &ReadOptions
) -> DBIterator

Notable traits for DBIterator

impl Iterator for DBIterator type Item = (Box<[u8]>, Box<[u8]>);
[src]

pub fn iterator_cf(
    &self,
    cf_handle: Column,
    mode: IteratorMode<'_>
) -> Result<DBIterator, String>
[src]

pub fn iterator_cf_opt(
    &self,
    cf_handle: Column,
    mode: IteratorMode<'_>,
    opts: &ReadOptions
) -> Result<DBIterator, String>
[src]

pub fn snapshot(&self) -> Snapshot<'_>[src]

pub fn put_opt(
    &self,
    key: &[u8],
    value: &[u8],
    writeopts: &WriteOptions
) -> Result<(), String>
[src]

pub fn put_cf_opt(
    &self,
    cf: Column,
    key: &[u8],
    value: &[u8],
    writeopts: &WriteOptions
) -> Result<(), String>
[src]

pub fn merge_opt(
    &self,
    key: &[u8],
    value: &[u8],
    writeopts: &WriteOptions
) -> Result<(), String>
[src]

pub fn merge_cf_opt(
    &self,
    cf: Column,
    key: &[u8],
    value: &[u8],
    writeopts: &WriteOptions
) -> Result<(), String>
[src]

pub fn delete_opt(
    &self,
    key: &[u8],
    writeopts: &WriteOptions
) -> Result<(), String>
[src]

pub fn delete_cf_opt(
    &self,
    cf: Column,
    key: &[u8],
    writeopts: &WriteOptions
) -> Result<(), String>
[src]

Trait Implementations

impl Drop for DB[src]

impl Send for DB[src]

impl Sync for DB[src]

impl Writable for DB[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.