Enum sql::ast::TableFactor [−][src]
pub enum TableFactor<T> where
T: AstInfo, {
Table {
name: <T as AstInfo>::ObjectName,
alias: Option<TableAlias>,
},
Function {
function: TableFunction<T>,
alias: Option<TableAlias>,
with_ordinality: bool,
},
RowsFrom {
functions: Vec<TableFunction<T>, Global>,
alias: Option<TableAlias>,
with_ordinality: bool,
},
Derived {
lateral: bool,
subquery: Box<Query<T>, Global>,
alias: Option<TableAlias>,
},
NestedJoin {
join: Box<TableWithJoins<T>, Global>,
alias: Option<TableAlias>,
},
}
Expand description
A table name or a parenthesized subquery with an optional alias
Variants
Table
Function
RowsFrom
Derived
NestedJoin
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
impl<T> PartialEq<TableFactor<T>> for TableFactor<T> where
T: PartialEq<T> + AstInfo,
<T as AstInfo>::ObjectName: PartialEq<<T as AstInfo>::ObjectName>,
impl<T> PartialEq<TableFactor<T>> for TableFactor<T> where
T: PartialEq<T> + AstInfo,
<T as AstInfo>::ObjectName: PartialEq<<T as AstInfo>::ObjectName>,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for TableFactor<T> where
<T as AstInfo>::Id: RefUnwindSafe,
<T as AstInfo>::ObjectName: RefUnwindSafe,
impl<T> Send for TableFactor<T> where
<T as AstInfo>::Id: Send,
<T as AstInfo>::ObjectName: Send,
impl<T> Sync for TableFactor<T> where
<T as AstInfo>::Id: Sync,
<T as AstInfo>::ObjectName: Sync,
impl<T> Unpin for TableFactor<T> where
<T as AstInfo>::ObjectName: Unpin,
impl<T> UnwindSafe for TableFactor<T> where
<T as AstInfo>::Id: UnwindSafe,
<T as AstInfo>::ObjectName: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}
) and returns it.
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more