pub enum TableFactor {
Table {
name: ObjectName,
alias: Option<TableAlias>,
args: Vec<FunctionArg>,
with_hints: Vec<Expr>,
},
Derived {
lateral: bool,
subquery: Box<Query>,
alias: Option<TableAlias>,
},
TableFunction {
expr: Expr,
alias: Option<TableAlias>,
},
NestedJoin(Box<TableWithJoins>),
}
Expand description
A table name or a parenthesized subquery with an optional alias
Variants§
Table
Fields
§
name: ObjectName
§
alias: Option<TableAlias>
§
args: Vec<FunctionArg>
Arguments of a table-valued function, as supported by Postgres
and MSSQL. Note that deprecated MSSQL FROM foo (NOLOCK)
syntax
will also be parsed as args
.
Derived
TableFunction
TABLE(<expr>)[ AS <alias> ]
NestedJoin(Box<TableWithJoins>)
Represents a parenthesized table factor. The SQL spec only allows a
join expression ((foo <JOIN> bar [ <JOIN> baz ... ])
) to be nested,
possibly several times.
The parser may also accept non-standard nesting of bare tables for some dialects, but the information about such nesting is stripped from AST.
Trait Implementations§
Source§impl Clone for TableFactor
impl Clone for TableFactor
Source§fn clone(&self) -> TableFactor
fn clone(&self) -> TableFactor
Returns a duplicate of the value. Read more
1.0.0 · 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 TableFactor
impl Debug for TableFactor
Source§impl Display for TableFactor
impl Display for TableFactor
Source§impl Hash for TableFactor
impl Hash for TableFactor
Source§impl PartialEq for TableFactor
impl PartialEq for TableFactor
impl Eq for TableFactor
impl StructuralPartialEq for TableFactor
Auto Trait Implementations§
impl Freeze for TableFactor
impl RefUnwindSafe for TableFactor
impl Send for TableFactor
impl Sync for TableFactor
impl Unpin for TableFactor
impl UnwindSafe for TableFactor
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