pub struct EnforcedKeyCache { /* private fields */ }Expand description
Every written row asks for its table’s enforced keys twice, and finding them decodes each index definition of the catalog. The keys of a table depend on its declared constraints and on the index rows, so they are kept for the same constraints and the same index rows. Arc identity follows copy-on-write catalog publication, refresh and rollback; no independent invalidation counter can omit a mutation path. The keys of a partition’s index also name its ancestors, which other tables’ definitions decide, and are not kept.
Implementations§
Source§impl EnforcedKeyCache
impl EnforcedKeyCache
pub fn keys( &self, table: &str, constraints: Vec<TableKeyConstraint>, indexes: &Arc<BTreeMap<RelationIdentity, CatalogIndexRow>>, find: impl FnOnce(Vec<TableKeyConstraint>) -> StorageBackendResult<Vec<EnforcedKey>>, ) -> StorageBackendResult<Vec<EnforcedKey>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for EnforcedKeyCache
impl !RefUnwindSafe for EnforcedKeyCache
impl !UnwindSafe for EnforcedKeyCache
impl Send for EnforcedKeyCache
impl Sync for EnforcedKeyCache
impl Unpin for EnforcedKeyCache
impl UnsafeUnpin for EnforcedKeyCache
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more