Struct semilattice_database::Session
source · [−]pub struct Session<'a> { /* private fields */ }Implementations
sourceimpl<'a> Session<'a>
impl<'a> Session<'a>
pub fn new(
main_database: &'a mut Database,
session_name: &'a str
) -> Result<Session<'_>, Error>
pub fn clear(&mut self)
pub fn commit(&mut self)
pub fn update(&mut self, records: Vec<Record>)
pub fn begin_search(&self, collection_id: i32) -> SessionSearch<'_>
pub fn field_str(&self, collection_id: i32, row: u32, key: &str) -> &str
pub fn collection_id(&mut self, collection_name: &str) -> Result<i32, Error>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Session<'a>
impl<'a> Send for Session<'a>
impl<'a> Sync for Session<'a>
impl<'a> Unpin for Session<'a>
impl<'a> !UnwindSafe for Session<'a>
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