Struct matterdb::rocksdb::RocksDB [−][src]
pub struct RocksDB { /* fields omitted */ }
Database implementation on top of RocksDB
backend.
RocksDB
is an embedded database for key-value data, which is optimized for fast storage.
This structure is required to potentially adapt the interface to
use different databases.
Implementations
impl RocksDB
[src]
impl RocksDB
[src]pub fn open<P: AsRef<Path>>(path: P, options: &DBOptions) -> Result<Self>
[src]
pub fn open<P: AsRef<Path>>(path: P, options: &DBOptions) -> Result<Self>
[src]Opens a database stored at the specified path with the specified options.
If the database does not exist at the indicated path and the option
create_if_missing
is switched on in DBOptions
, a new database will
be created at the indicated path.
pub fn create_checkpoint<T: AsRef<Path>>(&self, path: T) -> Result<()>
[src]
pub fn create_checkpoint<T: AsRef<Path>>(&self, path: T) -> Result<()>
[src]Creates checkpoint of this database in the given directory. See RocksDB
docs for
details.
Successfully created checkpoint can be opened using RocksDB::open
.
pub fn get_db_lock_guard(&self) -> ShardedLockReadGuard<'_, DB>
[src]
pub fn get_db_lock_guard(&self) -> ShardedLockReadGuard<'_, DB>
[src]Retrieves read lock guard containing underlying rocksdb::DB
.
Trait Implementations
impl Database for RocksDB
[src]
impl Database for RocksDB
[src]fn snapshot(&self) -> Box<dyn Snapshot>
[src]
fn snapshot(&self) -> Box<dyn Snapshot>
[src]Creates a new snapshot of the database from its current state.
fn merge(&self, patch: Patch) -> Result<()>
[src]
fn merge(&self, patch: Patch) -> Result<()>
[src]Atomically applies a sequence of patch changes to the database. Read more
Auto Trait Implementations
impl RefUnwindSafe for RocksDB
impl Send for RocksDB
impl Sync for RocksDB
impl Unpin for RocksDB
impl UnwindSafe for RocksDB
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more