pub struct SqlSelectFact {
pub line: usize,
pub tables: Vec<String>,
pub predicate_sql: String,
pub exists_set_operations: Vec<SqlExistsSetOpFact>,
pub relations: Vec<SqlRelationPredicateFact>,
pub in_insert_select: bool,
pub not_in_subqueries: Vec<usize>,
pub not_in_columns: Vec<usize>,
pub count_existence_checks: Vec<SqlCountExistenceFact>,
pub star_projections: Vec<SqlStarProjectionFact>,
pub column_uses: Vec<SqlColumnUseFact>,
pub catalog_predicates: Vec<SqlCatalogPredicate>,
/* private fields */
}Expand description
One SELECT that names relations in FROM/JOIN.
Fields§
§line: usize§tables: Vec<String>Physical relations, excluding visible CTE aliases (all siblings for recursive WITH).
predicate_sql: String§exists_set_operations: Vec<SqlExistsSetOpFact>§relations: Vec<SqlRelationPredicateFact>Base-table instances in this SELECT, with columns proven constrained.
in_insert_select: boolTrue when this SELECT is the query of INSERT … SELECT (including nested
selects inside that query).
not_in_subqueries: Vec<usize>Lines of NOT IN (SELECT …) and NOT (… IN (SELECT …)).
not_in_columns: Vec<usize>Original SQL columns corresponding to not_in_subqueries.
count_existence_checks: Vec<SqlCountExistenceFact>COUNT(*) compared with 0 or 1 to test existence.
Each fact keeps the comparison’s line, SQL column, and negated
(true when the comparison tests zero rows).
star_projections: Vec<SqlStarProjectionFact>* / alias.* projections over base FROM relations.
column_uses: Vec<SqlColumnUseFact>Bare column references in WHERE, JOIN ON, and ORDER BY.
catalog_predicates: Vec<SqlCatalogPredicate>Trait Implementations§
Source§impl Clone for SqlSelectFact
impl Clone for SqlSelectFact
Source§fn clone(&self) -> SqlSelectFact
fn clone(&self) -> SqlSelectFact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqlSelectFact
impl Debug for SqlSelectFact
impl Eq for SqlSelectFact
Source§impl PartialEq for SqlSelectFact
impl PartialEq for SqlSelectFact
impl StructuralPartialEq for SqlSelectFact
Auto Trait Implementations§
impl Forget for SqlSelectFact
impl Freeze for SqlSelectFactwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SqlExistsSetOpFact>: Freeze,
PhantomData<SqlRelationPredicateFact>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<SqlCountExistenceFact>: Freeze,
PhantomData<SqlStarProjectionFact>: Freeze,
PhantomData<SqlColumnUseFact>: Freeze,
PhantomData<SqlCatalogPredicate>: Freeze,
impl Move for SqlSelectFact
impl RefUnwindSafe for SqlSelectFact
impl Send for SqlSelectFactwhere
RawVecInner: Send,
impl Sync for SqlSelectFactwhere
RawVecInner: Sync,
impl Unpin for SqlSelectFact
impl UnsafeUnpin for SqlSelectFactwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SqlExistsSetOpFact>: UnsafeUnpin,
PhantomData<SqlRelationPredicateFact>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<SqlCountExistenceFact>: UnsafeUnpin,
PhantomData<SqlStarProjectionFact>: UnsafeUnpin,
PhantomData<SqlColumnUseFact>: UnsafeUnpin,
PhantomData<SqlCatalogPredicate>: UnsafeUnpin,
impl UnwindSafe for SqlSelectFactwhere
RawVecInner: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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