pub struct FerrumDB { /* private fields */ }Expand description
The premium FerrumDB instance.
Implementations§
Source§impl FerrumDB
impl FerrumDB
Sourcepub async fn open_default() -> Result<Self, FerrumError>
pub async fn open_default() -> Result<Self, FerrumError>
Open the database with default configuration (zero-setup).
Defaults to ./ferrum.db.
Sourcepub async fn open(config: Config) -> Result<Self, FerrumError>
pub async fn open(config: Config) -> Result<Self, FerrumError>
Open the database with a specific configuration.
Sourcepub fn engine(&self) -> Arc<StorageEngine>
pub fn engine(&self) -> Arc<StorageEngine>
Get the underlying storage engine.
Auto Trait Implementations§
impl Freeze for FerrumDB
impl !RefUnwindSafe for FerrumDB
impl Send for FerrumDB
impl Sync for FerrumDB
impl Unpin for FerrumDB
impl UnsafeUnpin for FerrumDB
impl !UnwindSafe for FerrumDB
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more