pub enum TableSource {
Table(TableRef),
Subquery {
query: Box<Statement>,
alias: Option<String>,
},
TableFunction {
name: String,
args: Vec<Expr>,
alias: Option<String>,
},
Lateral {
source: Box<TableSource>,
},
Unnest {
expr: Box<Expr>,
alias: Option<String>,
with_offset: bool,
},
}Expand description
A table source can be a table reference, subquery, or table function.
Variants§
Table(TableRef)
Subquery
TableFunction
Lateral
LATERAL subquery or function
Fields
§
source: Box<TableSource>Unnest
UNNEST(array_expr)
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 moreSource§impl Debug for TableSource
impl Debug for TableSource
Source§impl<'de> Deserialize<'de> for TableSource
impl<'de> Deserialize<'de> for TableSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TableSource
impl PartialEq for TableSource
Source§impl Serialize for TableSource
impl Serialize for TableSource
impl StructuralPartialEq for TableSource
Auto 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