pub struct SqlViewUseFact {Show 21 fields
pub relation: String,
pub database_qualified_relation: Option<String>,
pub whole_row_on_id: bool,
pub correlated_bare_id: bool,
pub proven_id: bool,
pub column_keys: Vec<SqlBareViewRowRead>,
pub qualified_peer_keys: Vec<SqlQualifiedViewKey>,
pub column_aliases: Vec<String>,
pub unqualified_columns: Vec<String>,
pub unresolved_column_ownership: bool,
pub schema_qualified_reads: Vec<SqlSchemaQualifiedViewRead>,
pub schema_qualified_embeddings: Vec<SqlSchemaQualifiedViewRead>,
pub qualified_embedding: bool,
pub row_arguments: Vec<SqlBareViewRowRead>,
pub bare_row_reads: Vec<SqlBareViewRowRead>,
pub using_row_reads: Vec<SqlUsingViewRowRead>,
pub correlated_columns: Vec<SqlBareViewRowRead>,
pub values_sort_reads: Vec<SqlViewValuesSortRead>,
pub natural_join_peers: Vec<SqlNaturalJoinPeers>,
pub line: usize,
pub column: usize,
}Expand description
A relation read from a join or a scalar subquery, before catalog classification.
Fields§
§relation: StringCanonical relation identity within the current database.
database_qualified_relation: Option<String>Full identity when SQL explicitly qualifies the relation with a database.
whole_row_on_id: boolWhole-row embedding is the only use of the view and the lookup uses its ID.
The only key is a bare ID with a possible outer column of that name.
proven_id: boolA syntactically confirmed ID equality, assuming the relation exposes its ID.
column_keys: Vec<SqlBareViewRowRead>Candidate ID predicates whose source column requires catalog resolution.
qualified_peer_keys: Vec<SqlQualifiedViewKey>Candidate keys using a visible qualified peer with the same short name as the view.
column_aliases: Vec<String>Positional aliases applied to the relation columns at this reference.
unqualified_columns: Vec<String>Unqualified columns whose binding needs catalog evidence.
unresolved_column_ownership: boolA join output aliases a read column at an unknown source position.
schema_qualified_reads: Vec<SqlSchemaQualifiedViewRead>Qualified reads whose binding depends on the default schema.
schema_qualified_embeddings: Vec<SqlSchemaQualifiedViewRead>§qualified_embedding: boolAn explicit qualified row argument proves an embedding.
row_arguments: Vec<SqlBareViewRowRead>Bare JSON arguments whose column ownership must be resolved.
bare_row_reads: Vec<SqlBareViewRowRead>Additional bare references that can resolve to a sibling column instead of the view row.
using_row_reads: Vec<SqlUsingViewRowRead>Bare USING row references and the merged column each may read.
Column references that can bind to this view in an enclosing query.
values_sort_reads: Vec<SqlViewValuesSortRead>A VALUES sort identifier may refer to a widened wildcard output.
natural_join_peers: Vec<SqlNaturalJoinPeers>Output columns on the other side of an implicit NATURAL join.
line: usizeOne-based source line.
column: usizeOne-based SQL column.
Trait Implementations§
Source§impl Clone for SqlViewUseFact
impl Clone for SqlViewUseFact
Source§fn clone(&self) -> SqlViewUseFact
fn clone(&self) -> SqlViewUseFact
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SqlViewUseFact
impl Debug for SqlViewUseFact
impl Eq for SqlViewUseFact
Source§impl PartialEq for SqlViewUseFact
impl PartialEq for SqlViewUseFact
impl StructuralPartialEq for SqlViewUseFact
Auto Trait Implementations§
impl Forget for SqlViewUseFact
impl Freeze for SqlViewUseFactwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SqlBareViewRowRead>: Freeze,
PhantomData<SqlQualifiedViewKey>: Freeze,
PhantomData<String>: Freeze,
PhantomData<SqlSchemaQualifiedViewRead>: Freeze,
PhantomData<SqlUsingViewRowRead>: Freeze,
PhantomData<SqlViewValuesSortRead>: Freeze,
PhantomData<SqlNaturalJoinPeers>: Freeze,
impl Move for SqlViewUseFact
impl RefUnwindSafe for SqlViewUseFact
impl Send for SqlViewUseFact
impl Sync for SqlViewUseFact
impl Unpin for SqlViewUseFact
impl UnsafeUnpin for SqlViewUseFactwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SqlBareViewRowRead>: UnsafeUnpin,
PhantomData<SqlQualifiedViewKey>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<SqlSchemaQualifiedViewRead>: UnsafeUnpin,
PhantomData<SqlUsingViewRowRead>: UnsafeUnpin,
PhantomData<SqlViewValuesSortRead>: UnsafeUnpin,
PhantomData<SqlNaturalJoinPeers>: UnsafeUnpin,
impl UnwindSafe for SqlViewUseFact
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<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<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