Struct tetsy_rocksdb::rocksdb::DB [−][src]
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]
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]
pub fn iterator(&self, mode: IteratorMode<'_>) -> DBIteratorⓘ
[src]
pub fn iterator_opt(
&self,
mode: IteratorMode<'_>,
opts: &ReadOptions
) -> DBIteratorⓘ
[src]
&self,
mode: IteratorMode<'_>,
opts: &ReadOptions
) -> 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 Drop for DB
[src]
impl Send for DB
[src]
impl Sync for DB
[src]
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]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,