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
join: JoinType
What type of join is it
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
sourceimpl<'a> Clone for TableReference<'a>
impl<'a> Clone for TableReference<'a>
sourcefn clone(&self) -> TableReference<'a>
fn clone(&self) -> TableReference<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for TableReference<'a>
impl<'a> Debug for TableReference<'a>
sourceimpl<'a> Spanned for TableReference<'a>
impl<'a> Spanned for TableReference<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more