Struct semilattice_database::Database
source · [−]pub struct Database { /* private fields */ }Implementations
sourceimpl Database
impl Database
pub fn new(dir: &str) -> Result<Database, Error>
pub fn collection(&self, id: u32) -> Option<&Collection>
pub fn collection_mut(&mut self, id: u32) -> Option<&mut Collection>
pub fn collection_id(&mut self, name: &str) -> Result<u32, Error>
pub fn begin_transaction(&mut self) -> Transaction<'_>
pub fn relation_mut(&mut self) -> &mut RelationIndex
pub fn relation(&self) -> &RelationIndex
pub fn childs(&self, key: &str, parent: &CollectionRow)
Auto Trait Implementations
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more