pub enum TableSource {
Table(SchemaRef),
SubQuery(SubQueryDef),
SetOp(Box<SetOpDef>),
Lateral(Box<FromItem>),
Function {
name: String,
args: Vec<Expr>,
alias: Option<String>,
},
Values {
rows: Vec<Vec<Expr>>,
alias: String,
column_aliases: Option<Vec<String>>,
},
Custom(Box<dyn CustomTableSource>),
}Expand description
Source of data in FROM clause.
Variants§
Table(SchemaRef)
A table or view.
SubQuery(SubQueryDef)
A subquery with alias.
SetOp(Box<SetOpDef>)
Set operation (UNION/INTERSECT/EXCEPT).
Lateral(Box<FromItem>)
LATERAL (subquery).
Function
Table-valued function: generate_series(1, 10), json_each(col).
Values
VALUES as a table source: (VALUES (1,'a'), (2,'b')) AS t(id, name).
Custom(Box<dyn CustomTableSource>)
User-defined table source (extension point).
Trait Implementations§
Source§impl Clone for TableSource
impl Clone for TableSource
Source§fn clone(&self) -> TableSource
fn clone(&self) -> TableSource
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TableSource
impl !RefUnwindSafe for TableSource
impl Send for TableSource
impl Sync for TableSource
impl Unpin for TableSource
impl UnsafeUnpin for TableSource
impl !UnwindSafe for TableSource
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