[−][src]Trait hycon_rust::database::IDB
Associated Types
type OptionType
Required methods
fn get_default_option() -> Self::OptionType
fn open(
db_path: PathBuf,
options: Option<Self::OptionType>
) -> Result<Self, Box<DBError>> where
Self: Sized,
db_path: PathBuf,
options: Option<Self::OptionType>
) -> Result<Self, Box<DBError>> where
Self: Sized,
fn destroy(db_path: PathBuf) -> Result<(), Box<DBError>> where
Self: Sized,
Self: Sized,
fn _get(&self, key: &[u8]) -> Result<Vec<u8>, Box<DBError>>
fn set(&mut self, key: &[u8], value: &Vec<u8>) -> Result<(), Box<DBError>>
fn delete(&mut self, key: &[u8]) -> Result<(), Box<DBError>>
fn write_batch(
&mut self,
key_pairs: Vec<(Vec<u8>, Vec<u8>)>
) -> Result<(), Box<DBError>>
&mut self,
key_pairs: Vec<(Vec<u8>, Vec<u8>)>
) -> Result<(), Box<DBError>>
Implementations on Foreign Types
impl IDB for RocksDB
[src]
type OptionType = RocksDBOptions
fn get_default_option() -> Self::OptionType
[src]
fn open(
db_path: PathBuf,
options: Option<Self::OptionType>
) -> Result<Self, Box<DBError>>
[src]
db_path: PathBuf,
options: Option<Self::OptionType>
) -> Result<Self, Box<DBError>>
fn destroy(db_path: PathBuf) -> Result<(), Box<DBError>>
[src]
fn _get(&self, key: &[u8]) -> Result<Vec<u8>, Box<DBError>>
[src]
fn set(&mut self, key: &[u8], value: &Vec<u8>) -> Result<(), Box<DBError>>
[src]
fn delete(&mut self, _key: &[u8]) -> Result<(), Box<DBError>>
[src]
fn write_batch(
&mut self,
key_pairs: Vec<(Vec<u8>, Vec<u8>)>
) -> Result<(), Box<DBError>>
[src]
&mut self,
key_pairs: Vec<(Vec<u8>, Vec<u8>)>
) -> Result<(), Box<DBError>>
Implementors
impl IDB for RocksDBMock
[src]
type OptionType = ()
fn get_default_option()
[src]
fn open(
_db_path: PathBuf,
_options: Option<Self::OptionType>
) -> Result<Self, Box<DBError>>
[src]
_db_path: PathBuf,
_options: Option<Self::OptionType>
) -> Result<Self, Box<DBError>>
fn destroy(_db_path: PathBuf) -> Result<(), Box<DBError>>
[src]
fn _get(&self, key: &[u8]) -> Result<Vec<u8>, Box<DBError>>
[src]
fn set(&mut self, key: &[u8], value: &Vec<u8>) -> Result<(), Box<DBError>>
[src]
fn delete(&mut self, key: &[u8]) -> Result<(), Box<DBError>>
[src]
fn write_batch(
&mut self,
key_pairs: Vec<(Vec<u8>, Vec<u8>)>
) -> Result<(), Box<DBError>>
[src]
&mut self,
key_pairs: Vec<(Vec<u8>, Vec<u8>)>
) -> Result<(), Box<DBError>>