Enum databend_common_ast::ast::TableReference
source · pub enum TableReference {
Table {
span: Span,
catalog: Option<Identifier>,
database: Option<Identifier>,
table: Identifier,
alias: Option<TableAlias>,
temporal: Option<TemporalClause>,
consume: bool,
pivot: Option<Box<Pivot>>,
unpivot: Option<Box<Unpivot>>,
sample: Option<Sample>,
},
TableFunction {
span: Span,
lateral: bool,
name: Identifier,
params: Vec<Expr>,
named_params: Vec<(Identifier, Expr)>,
alias: Option<TableAlias>,
sample: Option<Sample>,
},
Subquery {
span: Span,
lateral: bool,
subquery: Box<Query>,
alias: Option<TableAlias>,
},
Join {
span: Span,
join: Join,
},
Location {
span: Span,
location: FileLocation,
options: SelectStageOptions,
alias: Option<TableAlias>,
},
}Expand description
A table name or a parenthesized subquery with an optional alias
Variants§
Table
Fields
§
catalog: Option<Identifier>§
database: Option<Identifier>§
table: Identifier§
alias: Option<TableAlias>§
temporal: Option<TemporalClause>TableFunction
Subquery
Fields
§
alias: Option<TableAlias>Join
Location
Implementations§
Trait Implementations§
source§impl Clone for TableReference
impl Clone for TableReference
source§fn clone(&self) -> TableReference
fn clone(&self) -> TableReference
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 Debug for TableReference
impl Debug for TableReference
source§impl Display for TableReference
impl Display for TableReference
source§impl DriveMut for TableReference
impl DriveMut for TableReference
fn drive_mut<V: VisitorMut>(&mut self, visitor: &mut V)
source§impl PartialEq for TableReference
impl PartialEq for TableReference
impl StructuralPartialEq for TableReference
Auto Trait Implementations§
impl Freeze for TableReference
impl RefUnwindSafe for TableReference
impl Send for TableReference
impl Sync for TableReference
impl Unpin for TableReference
impl UnwindSafe for TableReference
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more