Enum sql_parse::TableReference 
source · pub enum TableReference<'a> {
    Table {
        identifier: QualifiedName<'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
Reference to a table or view
Fields
§
identifier: QualifiedName<'a>Name of table to to select from
§
as_: Option<Identifier<'a>>Alias for table if specified
Query
Subquery
Fields
§
as_: Option<Identifier<'a>>Alias for table if specified
Join
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
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 moresource§impl<'a> Debug for TableReference<'a>
 
impl<'a> Debug for TableReference<'a>
Auto Trait Implementations§
impl<'a> Freeze for TableReference<'a>
impl<'a> RefUnwindSafe for TableReference<'a>
impl<'a> Send for TableReference<'a>
impl<'a> Sync for TableReference<'a>
impl<'a> Unpin for TableReference<'a>
impl<'a> UnwindSafe for TableReference<'a>
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