pub struct ReferencingChildLock<'a> {
pub ref_table: &'a str,
pub child: &'a PhysicalDocumentIdentity,
pub lock_columns: &'a [String],
pub foreign_key: &'a ForeignKey,
pub comparison: &'a ForeignKeyComparison,
pub expected: &'a [Value],
}Expand description
Lock one referencing child row for a referential action and refetch it after the wait. Returns None when the child vanished or its foreign-key columns no longer reference the parent key that triggered the action, so the action skips it exactly like PostgreSQL after an EvalPlanQual recheck of the referencing row.
Fields§
§ref_table: &'a str§child: &'a PhysicalDocumentIdentity§lock_columns: &'a [String]§foreign_key: &'a ForeignKey§comparison: &'a ForeignKeyComparison§expected: &'a [Value]Auto Trait Implementations§
impl<'a> Freeze for ReferencingChildLock<'a>
impl<'a> RefUnwindSafe for ReferencingChildLock<'a>
impl<'a> Send for ReferencingChildLock<'a>
impl<'a> Sync for ReferencingChildLock<'a>
impl<'a> Unpin for ReferencingChildLock<'a>
impl<'a> UnsafeUnpin for ReferencingChildLock<'a>
impl<'a> UnwindSafe for ReferencingChildLock<'a>
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