pub struct SessionDatabase { /* private fields */ }Implementations§
source§impl SessionDatabase
impl SessionDatabase
pub fn commit(&mut self, session: &mut Session) -> Vec<CollectionRow>
source§impl SessionDatabase
impl SessionDatabase
pub fn new( dir: PathBuf, collection_settings: Option<HashMap<String, DataOption>> ) -> Self
pub fn sessions(&self) -> Vec<SessionInfo>
pub fn session_gc(&self, default_expire_interval_sec: i64)
pub fn session( &self, session_name: &str, expire_interval_sec: Option<i64> ) -> Session
pub fn session_dir(&self, session_name: &str) -> PathBuf
pub fn session_clear(&self, session: &mut Session)
pub fn session_restart( &self, session: &mut Session, expire_interval_sec: Option<i64> )
pub fn update( &self, session: &mut Session, records: Vec<SessionRecord> ) -> Vec<CollectionRow>
pub fn depends_with_session( &self, key: Option<&str>, pend_collection_id: i32, pend_row: u32, session: Option<&Session> ) -> Vec<Depend>
pub fn register_relations_with_session( &mut self, depend: &CollectionRow, pends: Vec<(String, CollectionRow)>, row_map: &HashMap<CollectionRow, CollectionRow> )
Methods from Deref<Target = Database>§
pub fn search(&self, colletion_id: i32) -> Search
pub fn collections(&self) -> Vec<String, Global>
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) -> i32
pub fn delete_collection(&mut self, name: &str)
pub fn relation(&self) -> Arc<RwLock<RelationIndex>, Global>
pub fn register_relation( &mut self, key_name: &str, depend: &CollectionRow, pend: CollectionRow )
pub fn register_relations( &mut self, depend: &CollectionRow, pends: Vec<(String, CollectionRow), Global> )
pub fn depends( &self, key: Option<&str>, pend_collection_id: i32, pend_row: u32 ) -> Vec<Depend, Global>
pub fn delete_recursive(&mut self, target: &CollectionRow)
Trait Implementations§
source§impl Deref for SessionDatabase
impl Deref for SessionDatabase
Auto Trait Implementations§
impl RefUnwindSafe for SessionDatabase
impl Send for SessionDatabase
impl Sync for SessionDatabase
impl Unpin for SessionDatabase
impl UnwindSafe for SessionDatabase
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