pub struct Database { /* private fields */ }Expand description
A handle to an open KeraDB database.
Obtain one via Client::database.
Implementations§
Source§impl Database
impl Database
Sourcepub fn collection(&self, name: &str) -> Collection
pub fn collection(&self, name: &str) -> Collection
Return a Collection for the given name. Collections are created
implicitly on first write.
Sourcepub fn list_collection_names(&self) -> Result<Vec<String>>
pub fn list_collection_names(&self) -> Result<Vec<String>>
Return the names of all collections in this database.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Database
impl RefUnwindSafe for Database
impl !Sync for Database
impl Unpin for Database
impl UnsafeUnpin for Database
impl UnwindSafe for Database
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