Struct semilattice_database::RelationIndex
source · pub struct RelationIndex { /* private fields */ }Implementations§
source§impl RelationIndex
impl RelationIndex
pub fn new(root_dir: &Path) -> Result<Self>
pub fn insert( &mut self, relation_key: &str, depend: CollectionRow, pend: CollectionRow ) -> Result<()>
pub fn delete(&mut self, row: u32) -> Result<u64>
pub fn delete_pends_by_collection_row( &mut self, collection_row: &CollectionRow ) -> Result<()>
pub fn pends( &self, key: Option<&str>, depend: &CollectionRow ) -> Vec<CollectionRow>
pub fn depends( &self, key: Option<&str>, pend: &CollectionRow ) -> Vec<SessionDepend>
pub fn index_depend(&self) -> &IdxFile<CollectionRow>
pub fn index_pend(&self) -> &IdxFile<CollectionRow>
pub fn depend(&self, row: u32) -> Option<&CollectionRow>
pub unsafe fn key(&self, row: u32) -> Result<&str, Utf8Error>
Auto Trait Implementations§
impl RefUnwindSafe for RelationIndex
impl Send for RelationIndex
impl Sync for RelationIndex
impl Unpin for RelationIndex
impl UnwindSafe for RelationIndex
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