pub struct LockingSelectMetadata {
pub has_multi_row_predicate: bool,
pub has_order_by: bool,
pub skips_locked_rows: bool,
pub tables: Option<Vec<String>>,
pub table_qualifiers: Option<BTreeMap<String, Vec<String>>>,
pub order: Option<Vec<CanonicalOrderKey>>,
pub pinned_columns: Option<BTreeMap<String, Vec<String>>>,
pub join_equalities: Vec<JoinEquality>,
}Expand description
Locking SELECT facts later lock-ordering rules can query.
Fields§
§has_multi_row_predicate: bool§has_order_by: bool§skips_locked_rows: bool§tables: Option<Vec<String>>§table_qualifiers: Option<BTreeMap<String, Vec<String>>>§order: Option<Vec<CanonicalOrderKey>>§pinned_columns: Option<BTreeMap<String, Vec<String>>>Columns of each base relation in the FROM pinned to one bound value by a top-level
WHERE or inner-join ON equality. With a catalog unique key they bound a relation
to one row regardless of IN / = ANY filters on other columns.
join_equalities: Vec<JoinEquality>Equalities between columns of two distinct base relations (top-level AND of WHERE
or an inner join’s ON): a relation pinned through one is as single-row as the other.
Trait Implementations§
Source§impl Clone for LockingSelectMetadata
impl Clone for LockingSelectMetadata
Source§impl Debug for LockingSelectMetadata
impl Debug for LockingSelectMetadata
impl Eq for LockingSelectMetadata
Source§impl PartialEq for LockingSelectMetadata
impl PartialEq for LockingSelectMetadata
impl StructuralPartialEq for LockingSelectMetadata
Auto Trait Implementations§
impl Forget for LockingSelectMetadata
impl Freeze for LockingSelectMetadatawhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, Vec<String>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Vec<String>)>>: Freeze,
PhantomData<CanonicalOrderKey>: Freeze,
PhantomData<JoinEquality>: Freeze,
impl Move for LockingSelectMetadata
impl RefUnwindSafe for LockingSelectMetadata
impl Send for LockingSelectMetadata
impl Sync for LockingSelectMetadata
impl Unpin for LockingSelectMetadata
impl UnsafeUnpin for LockingSelectMetadatawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Vec<String>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Vec<String>)>>: UnsafeUnpin,
PhantomData<CanonicalOrderKey>: UnsafeUnpin,
PhantomData<JoinEquality>: UnsafeUnpin,
impl UnwindSafe for LockingSelectMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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