Struct RocksDBClient

Source
pub struct RocksDBClient { /* private fields */ }

Implementations§

Source§

impl RocksDBClient

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn rollback_transaction(&mut 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>,

Source§

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>,

Source§

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.