Struct semilattice_database::Database
source · [−]pub struct Database { /* private fields */ }Implementations
sourceimpl Database
impl Database
pub fn new(dir: &str) -> Database
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) -> u32
pub fn begin_transaction(&mut self) -> Transaction<'_>
pub fn data(&self, collection_id: u32) -> Option<&Data>
pub fn relation_mut(&mut self) -> &mut RelationIndexes
pub fn relation(&self) -> &RelationIndexes
pub fn childs(&self, 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