Enum databend_common_ast::ast::SelectTarget
source · pub enum SelectTarget {
AliasedExpr {
expr: Box<Expr>,
alias: Option<Identifier>,
},
StarColumns {
qualified: QualifiedName,
column_filter: Option<ColumnFilter>,
},
}Expand description
One item of the comma-separated list following SELECT
Variants§
AliasedExpr
Expression with alias, e.g. SELECT t.a, b AS a, a+1 AS b FROM t
StarColumns
Qualified star name, e.g. SELECT t.* exclude a, columns(expr) FROM t.
Columns(“pattern_str”)
Columns(lambda expression)
For simplicity, star wildcard is involved.
Implementations§
source§impl SelectTarget
impl SelectTarget
pub fn is_star(&self) -> bool
pub fn exclude(&mut self, exclude: Vec<Identifier>)
pub fn has_window(&self) -> bool
pub fn function_call_name(&self) -> Option<String>
Trait Implementations§
source§impl Clone for SelectTarget
impl Clone for SelectTarget
source§fn clone(&self) -> SelectTarget
fn clone(&self) -> SelectTarget
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 SelectTarget
impl Debug for SelectTarget
source§impl Display for SelectTarget
impl Display for SelectTarget
source§impl DriveMut for SelectTarget
impl DriveMut for SelectTarget
fn drive_mut<V: VisitorMut>(&mut self, visitor: &mut V)
source§impl PartialEq for SelectTarget
impl PartialEq for SelectTarget
impl StructuralPartialEq for SelectTarget
Auto Trait Implementations§
impl Freeze for SelectTarget
impl RefUnwindSafe for SelectTarget
impl Send for SelectTarget
impl Sync for SelectTarget
impl Unpin for SelectTarget
impl UnwindSafe for SelectTarget
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