Struct rocksdb_client_rust::RocksDBClient

source ·
pub struct RocksDBClient { /* private fields */ }

Implementations§

source§

impl RocksDBClient

source

pub fn new(host: String, port: u16) -> Self

source

pub fn put( &self, key: String, value: String, cf_name: Option<String>, txn: Option<bool>, ) -> Result<Option<String>, String>

source

pub fn get( &self, key: String, cf_name: Option<String>, default_value: Option<String>, txn: Option<bool>, ) -> Result<Option<String>, String>

source

pub fn delete( &self, key: String, cf_name: Option<String>, txn: Option<bool>, ) -> Result<Option<String>, String>

source

pub fn merge( &self, key: String, value: String, cf_name: Option<String>, txn: Option<bool>, ) -> Result<Option<String>, String>

source

pub fn get_property( &self, value: String, cf_name: Option<String>, ) -> Result<Option<String>, String>

source

pub fn keys( &self, start: String, limit: String, query: Option<String>, ) -> Result<Option<String>, String>

source

pub fn all(&self, query: Option<String>) -> Result<Option<String>, String>

source

pub fn list_column_families(&self) -> Result<Option<String>, String>

source

pub fn create_column_family( &self, cf_name: String, ) -> Result<Option<String>, String>

source

pub fn drop_column_family( &self, cf_name: String, ) -> Result<Option<String>, String>

source

pub fn compact_range( &self, start: Option<String>, end: Option<String>, cf_name: Option<String>, ) -> Result<Option<String>, String>

source

pub fn write_batch_put( &self, key: String, value: String, cf_name: Option<String>, ) -> Result<Option<String>, String>

source

pub fn write_batch_merge( &self, key: String, value: String, cf_name: Option<String>, ) -> Result<Option<String>, String>

source

pub fn write_batch_delete( &self, key: String, cf_name: Option<String>, ) -> Result<Option<String>, String>

source

pub fn write_batch_write(&self) -> Result<Option<String>, String>

source

pub fn write_batch_clear(&self) -> Result<Option<String>, String>

source

pub fn write_batch_destroy(&self) -> Result<Option<String>, String>

source

pub fn create_iterator(&self) -> Result<Option<String>, String>

source

pub fn destroy_iterator( &self, iterator_id: String, ) -> Result<Option<String>, String>

source

pub fn iterator_seek( &self, iterator_id: String, key: String, ) -> Result<Option<String>, String>

source

pub fn iterator_next( &self, iterator_id: String, ) -> Result<Option<String>, String>

source

pub fn iterator_prev( &self, iterator_id: String, ) -> Result<Option<String>, String>

source

pub fn backup(&self) -> Result<Option<String>, String>

source

pub fn restore_latest(&self) -> Result<Option<String>, String>

source

pub fn restore(&self, backup_id: String) -> Result<Option<String>, String>

source

pub fn get_backup_info(&self) -> Result<Option<String>, String>

source

pub fn begin_transaction(&self) -> Result<Option<String>, String>

source

pub fn commit_transaction(&self) -> Result<Option<String>, String>

source

pub fn rollback_transaction(&self) -> Result<Option<String>, String>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.