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 root_dir(&self) -> &str
pub fn session(&self, session_name: &str) -> Result<Session, Error>
pub fn blank_session(&self) -> Result<Session, Error>
pub fn commit(&mut self, session: &mut Session)
pub fn session_clear(&self, session: &mut Session)
pub fn session_start(&self, session: &mut Session)
pub fn session_restart(&self, session: &mut Session)
pub fn update(&self, session: &mut Session, records: Vec<Record>)
pub fn collection(&self, id: i32) -> Option<&Collection>
pub fn collection_mut(&mut self, id: i32) -> Option<&mut Collection>
pub fn collection_id(&self, name: &str) -> Option<i32>
pub fn collection_id_or_create(&mut self, name: &str) -> Result<i32, Error>
pub fn relation(&self) -> &RelationIndex
pub fn search(&self, colletion: &Collection) -> Search
pub fn result(&self, search: &Search) -> RowSet
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