pub enum Source {
Table {
name: Slice,
alias: StrRef,
columns: Slice,
},
Subquery {
query: QueryRef,
alias: StrRef,
columns: Slice,
},
Function {
name: Slice,
args: Slice,
alias: StrRef,
columns: Slice,
},
Values {
rows: Slice,
alias: StrRef,
columns: Slice,
},
Join {
left: SourceRef,
right: SourceRef,
kind: JoinKind,
natural: bool,
on: ExprRef,
using: Slice,
},
}Expand description
One entry in a FROM clause, which is a tree because joins nest.
Variants§
Table
A named table, possibly qualified by schema and catalog.
Fields
Subquery
A parenthesised query in the FROM clause.
Fields
Function
A function call where a table goes, such as range(10).
Held with the name as a qualified run rather than a single string, because main.range(10)
is legal and a function in a schema that does not exist has to say so rather than being
looked up unqualified and found.
Fields
Values
A VALUES in the FROM clause.
Fields
Join
Two sources joined.
Trait Implementations§
impl Copy for Source
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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