Struct semilattice_database_session::Session
source · pub struct Session { /* private fields */ }Implementations§
source§impl Session
impl Session
pub fn name(&self) -> &str
pub fn set_sequence_cursor(&mut self, current: usize)
pub fn sequence_cursor(&self) -> Option<SequenceCursor>
pub fn new_data( session_dir: &Path, expire_interval_sec: Option<i64> ) -> SessionData
pub fn begin_search(&mut self, collection_id: NonZeroI32) -> SessionSearch<'_>
pub fn search(&mut self, search: Search) -> SessionSearch<'_>
pub async fn result_with( &self, result: &SearchResult, database: &Database, conditions: &Vec<Condition>, orders: &Vec<Order> ) -> Vec<NonZeroI64>
pub fn field_bytes<'a>( &'a self, database: &'a SessionDatabase, collection_id: NonZeroI32, row: NonZeroI64, key: &str ) -> &[u8] ⓘ
pub fn collection_field_bytes<'a>( &'a self, collection: &'a Collection, row: NonZeroI64, key: &str ) -> &[u8] ⓘ
pub fn temporary_collection( &self, collection_id: NonZeroI32 ) -> Option<&HashMap<NonZeroI64, TemporaryDataEntity>>
pub fn depends( &self, key: Option<&str>, pend_row: NonZeroU32 ) -> Option<Vec<Depend>>
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