pub enum SqlPinSource {
Value,
Items(Vec<usize>),
StoredArray(Vec<usize>),
Array {
items: Vec<usize>,
scalar_columns: Vec<(usize, String)>,
indexed_columns: Vec<(usize, String)>,
cast_types: Vec<String>,
},
Query(SqlBoundQuery),
ArrayQuery(SqlBoundQuery),
ReadQuery(SqlBoundQuery),
}Variants§
Value
A literal, placeholder, list, array or scalar subquery: a value the caller sizes.
Items(Vec<usize>)
An expression over columns of other items of the same statement (indexes into the items).
StoredArray(Vec<usize>)
An array expression with unproven caller cardinality, including stored columns and unknown function results. Indexes retain known source items; this supplies no finite-key proof, even when an owning row is bounded.
Array
A syntactically finite array constructor over other items. Every referenced column must be catalog-proven scalar before its row bound can size the flattened array.
Fields
Query(SqlBoundQuery)
IN (SELECT …) or = ANY (SELECT …): sized by the subquery.
ArrayQuery(SqlBoundQuery)
ARRAY(SELECT …) or a scalar array_agg: input rows and scalar elements need proof.
ReadQuery(SqlBoundQuery)
An executed correlated IN/ANY subquery: retain its reads, never grant key credit.
Trait Implementations§
Source§impl Clone for SqlPinSource
impl Clone for SqlPinSource
Source§impl Debug for SqlPinSource
impl Debug for SqlPinSource
impl Eq for SqlPinSource
Source§impl PartialEq for SqlPinSource
impl PartialEq for SqlPinSource
impl StructuralPartialEq for SqlPinSource
Auto Trait Implementations§
impl Forget for SqlPinSource
impl Freeze for SqlPinSource
impl Move for SqlPinSource
impl RefUnwindSafe for SqlPinSource
impl Send for SqlPinSource
impl Sync for SqlPinSource
impl Unpin for SqlPinSource
impl UnsafeUnpin for SqlPinSource
impl UnwindSafe for SqlPinSource
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
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> ⓘ
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> ⓘ
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