pub enum TableOrSubquery {
Table {
name: QualifiedName,
alias: Option<String>,
index_hint: Option<IndexHint>,
time_travel: Option<TimeTravelClause>,
},
Subquery {
query: Box<SelectStatement>,
alias: Option<String>,
},
TableFunction {
name: String,
args: Vec<Expr>,
alias: Option<String>,
},
ParenJoin(Box<FromClause>),
}Expand description
A table source in a FROM clause.
Variants§
Table
A named table: [schema.]table [AS alias] [INDEXED BY idx | NOT INDEXED] [FOR SYSTEM_TIME AS OF ...].
Subquery
A subquery: (SELECT ...) [AS alias].
TableFunction
A table-valued function call: func(args) [AS alias].
ParenJoin(Box<FromClause>)
Parenthesized join: (table JOIN table ...).
Trait Implementations§
Source§impl Clone for TableOrSubquery
impl Clone for TableOrSubquery
Source§fn clone(&self) -> TableOrSubquery
fn clone(&self) -> TableOrSubquery
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 TableOrSubquery
impl Debug for TableOrSubquery
Source§impl Display for TableOrSubquery
impl Display for TableOrSubquery
Source§impl PartialEq for TableOrSubquery
impl PartialEq for TableOrSubquery
impl StructuralPartialEq for TableOrSubquery
Auto Trait Implementations§
impl Freeze for TableOrSubquery
impl RefUnwindSafe for TableOrSubquery
impl Send for TableOrSubquery
impl Sync for TableOrSubquery
impl Unpin for TableOrSubquery
impl UnsafeUnpin for TableOrSubquery
impl UnwindSafe for TableOrSubquery
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