Enum sql_parse::TableReference
source · pub enum TableReference<'a> {
Table {
identifier: Vec<Identifier<'a>>,
as_span: Option<Span>,
as_: Option<Identifier<'a>>,
},
Query {
query: Box<Statement<'a>>,
as_span: Option<Span>,
as_: Option<Identifier<'a>>,
},
Join {
join: JoinType,
left: Box<TableReference<'a>>,
right: Box<TableReference<'a>>,
specification: Option<JoinSpecification<'a>>,
},
}
Expand description
Reference to table in select
Variants§
Table
Fields
§
identifier: Vec<Identifier<'a>>
Name of table to to select from
§
as_: Option<Identifier<'a>>
Alias for table if specified
Reference to a table or view
Query
Fields
§
as_: Option<Identifier<'a>>
Alias for table if specified
Subquery
Join
Fields
§
left: Box<TableReference<'a>>
Left hand side of join
§
right: Box<TableReference<'a>>
Right hand side of join
§
specification: Option<JoinSpecification<'a>>
How to do the join if specified
Join
Trait Implementations§
source§impl<'a> Clone for TableReference<'a>
impl<'a> Clone for TableReference<'a>
source§fn clone(&self) -> TableReference<'a>
fn clone(&self) -> TableReference<'a>
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 more