Struct semilattice_database::Session
source · pub struct Session { /* private fields */ }Implementations§
source§impl Session
impl Session
pub fn new( main_database: &Database, name: impl Into<String>, expire_interval_sec: Option<i64> ) -> Result<Self>
pub fn name(&mut self) -> &str
pub fn set_sequence_cursor(&mut self, current: usize)
pub fn sequence_cursor(&self) -> Option<SessionSequenceCursor>
pub fn new_data( session_dir: &Path, expire_interval_sec: Option<i64> ) -> Result<SessionData>
pub fn begin_search(&self, collection_id: i32) -> SessionSearch<'_>
pub fn search( &self, collection_id: i32, condtions: &Vec<Condition> ) -> SessionSearch<'_>
pub fn field_bytes<'a>( &'a self, database: &'a Database, collection_id: i32, row: i64, key: &str ) -> &[u8] ⓘ
pub fn collection_field_bytes<'a>( &'a self, collection: &'a Collection, row: i64, key: &str ) -> &[u8] ⓘ
pub fn temporary_collection( &self, collection_id: i32 ) -> Option<&HashMap<i64, TemporaryDataEntity>>
pub fn depends( &self, key: Option<&str>, pend_row: u32 ) -> Option<Vec<SessionDepend>>
Auto Trait Implementations§
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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