[−][src]Struct parity_rocksdb::rocksdb::DB
Methods
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]
opts: &Options,
path: &str,
cfs: &[&str],
cf_opts: &[Options]
) -> Result<DB, String>
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]
&self,
batch: WriteBatch,
writeopts: &WriteOptions
) -> Result<(), String>
pub fn write(&self, batch: WriteBatch) -> Result<(), String>
[src]
pub fn get_opt(
&self,
key: &[u8],
readopts: &ReadOptions
) -> Result<Option<DBVector>, String>
[src]
&self,
key: &[u8],
readopts: &ReadOptions
) -> Result<Option<DBVector>, String>
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]
&self,
cf: Column,
key: &[u8],
readopts: &ReadOptions
) -> Result<Option<DBVector>, String>
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]
&mut self,
name: &str,
opts: &Options
) -> Result<Column, String>
pub fn drop_cf(&mut self, name: &str) -> Result<(), String>
[src]
pub fn cf_handle(&self, name: &str) -> Option<Column>
[src]
ⓘImportant traits for DBIteratorpub fn iterator(&self, mode: IteratorMode) -> DBIterator
[src]
ⓘImportant traits for DBIterator
ⓘImportant traits for DBIteratorpub fn iterator_opt(&self, mode: IteratorMode, opts: &ReadOptions) -> DBIterator
[src]
ⓘImportant traits for DBIterator
pub fn iterator_cf(
&self,
cf_handle: Column,
mode: IteratorMode
) -> Result<DBIterator, String>
[src]
&self,
cf_handle: Column,
mode: IteratorMode
) -> Result<DBIterator, String>
pub fn iterator_cf_opt(
&self,
cf_handle: Column,
mode: IteratorMode,
opts: &ReadOptions
) -> Result<DBIterator, String>
[src]
&self,
cf_handle: Column,
mode: IteratorMode,
opts: &ReadOptions
) -> Result<DBIterator, String>
pub fn snapshot(&self) -> Snapshot
[src]
pub fn put_opt(
&self,
key: &[u8],
value: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
[src]
&self,
key: &[u8],
value: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
pub fn put_cf_opt(
&self,
cf: Column,
key: &[u8],
value: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
[src]
&self,
cf: Column,
key: &[u8],
value: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
pub fn merge_opt(
&self,
key: &[u8],
value: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
[src]
&self,
key: &[u8],
value: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
pub fn merge_cf_opt(
&self,
cf: Column,
key: &[u8],
value: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
[src]
&self,
cf: Column,
key: &[u8],
value: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
pub fn delete_opt(
&self,
key: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
[src]
&self,
key: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
pub fn delete_cf_opt(
&self,
cf: Column,
key: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
[src]
&self,
cf: Column,
key: &[u8],
writeopts: &WriteOptions
) -> Result<(), String>
Trait Implementations
impl Writable for DB
[src]
fn put(&self, key: &[u8], value: &[u8]) -> Result<(), String>
[src]
fn put_cf(&self, cf: Column, key: &[u8], value: &[u8]) -> Result<(), String>
[src]
fn merge(&self, key: &[u8], value: &[u8]) -> Result<(), String>
[src]
fn merge_cf(&self, cf: Column, key: &[u8], value: &[u8]) -> Result<(), String>
[src]
fn delete(&self, key: &[u8]) -> Result<(), String>
[src]
fn delete_cf(&self, cf: Column, key: &[u8]) -> Result<(), String>
[src]
impl Drop for DB
[src]
impl Sync for DB
[src]
impl Send for DB
[src]
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,