Enum sql_ast::ast::TableFactor
source · pub enum TableFactor {
Table {
name: ObjectName,
alias: Option<TableAlias>,
args: Vec<Expr>,
with_hints: Vec<Expr>,
},
Derived {
lateral: bool,
subquery: Box<Query>,
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>
Derived
NestedJoin(Box<TableWithJoins>)
Represents a parenthesized join expression, such as
(foo <JOIN> bar [ <JOIN> baz ... ])
.
The inner TableWithJoins
can have no joins only if its
relation
is itself a TableFactor::NestedJoin
.
Trait Implementations§
source§impl Clone for TableFactor
impl Clone for TableFactor
source§fn clone(&self) -> TableFactor
fn clone(&self) -> TableFactor
Returns a copy 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
source§fn eq(&self, other: &TableFactor) -> bool
fn eq(&self, other: &TableFactor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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