pub struct Catalog { /* private fields */ }Expand description
Db catalog for names, schemas, projections, and indexes.
§Performance
Cloning is O(catalog entries + string bytes).
Implementations§
Source§impl Catalog
impl Catalog
Sourcepub fn role(&self, id: RoleId) -> Option<&RoleDefinition>
pub fn role(&self, id: RoleId) -> Option<&RoleDefinition>
Sourcepub fn label(&self, id: LabelId) -> Option<&LabelDefinition>
pub fn label(&self, id: LabelId) -> Option<&LabelDefinition>
Sourcepub fn relation_type(
&self,
id: RelationTypeId,
) -> Option<&RelationTypeDefinition>
pub fn relation_type( &self, id: RelationTypeId, ) -> Option<&RelationTypeDefinition>
Sourcepub fn property_key(&self, id: PropertyKeyId) -> Option<&PropertyKeyDefinition>
pub fn property_key(&self, id: PropertyKeyId) -> Option<&PropertyKeyDefinition>
Sourcepub fn projection(&self, id: ProjectionId) -> Option<&ProjectionEntry>
pub fn projection(&self, id: ProjectionId) -> Option<&ProjectionEntry>
Sourcepub fn index(&self, id: IndexId) -> Option<&IndexEntry>
pub fn index(&self, id: IndexId) -> Option<&IndexEntry>
Sourcepub fn relation_type_id(&self, name: &str) -> Option<RelationTypeId>
pub fn relation_type_id(&self, name: &str) -> Option<RelationTypeId>
Sourcepub fn property_key_id(&self, name: &str) -> Option<PropertyKeyId>
pub fn property_key_id(&self, name: &str) -> Option<PropertyKeyId>
Sourcepub fn projection_id(&self, name: &str) -> Option<ProjectionId>
pub fn projection_id(&self, name: &str) -> Option<ProjectionId>
Sourcepub fn roles(&self) -> impl Iterator<Item = &RoleDefinition>
pub fn roles(&self) -> impl Iterator<Item = &RoleDefinition>
Sourcepub fn labels(&self) -> impl Iterator<Item = &LabelDefinition>
pub fn labels(&self) -> impl Iterator<Item = &LabelDefinition>
Sourcepub fn relation_types(&self) -> impl Iterator<Item = &RelationTypeDefinition>
pub fn relation_types(&self) -> impl Iterator<Item = &RelationTypeDefinition>
Sourcepub fn property_keys(&self) -> impl Iterator<Item = &PropertyKeyDefinition>
pub fn property_keys(&self) -> impl Iterator<Item = &PropertyKeyDefinition>
Sourcepub fn projections(&self) -> impl Iterator<Item = &ProjectionEntry>
pub fn projections(&self) -> impl Iterator<Item = &ProjectionEntry>
Sourcepub fn indexes(&self) -> impl Iterator<Item = &IndexEntry>
pub fn indexes(&self) -> impl Iterator<Item = &IndexEntry>
Trait Implementations§
impl Eq for Catalog
impl StructuralPartialEq for Catalog
Auto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
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