pub enum SelectExpression {
Column(ColumnRef),
Aggregate(AggregateFunction),
Function(FunctionCall),
Literal(Value),
CollectionAccess(CollectionAccessExpression),
Arithmetic(ArithmeticExpression),
Aliased(Box<SelectExpression>, String),
}Expand description
Expression in SELECT clause
Variants§
Column(ColumnRef)
Simple column reference
Aggregate(AggregateFunction)
Aggregate function
Function(FunctionCall)
Scalar function
Literal(Value)
Literal value
CollectionAccess(CollectionAccessExpression)
Collection access (list[0], map[‘key’])
Arithmetic(ArithmeticExpression)
Arithmetic expression
Aliased(Box<SelectExpression>, String)
Aliased expression (expr AS alias)
Implementations§
Source§impl SelectExpression
impl SelectExpression
Sourcepub fn is_aggregate(&self) -> bool
pub fn is_aggregate(&self) -> bool
Check if this expression is an aggregate function
Sourcepub fn get_column_refs(&self) -> Vec<ColumnRef>
pub fn get_column_refs(&self) -> Vec<ColumnRef>
Get all column references in this expression
Trait Implementations§
Source§impl Clone for SelectExpression
impl Clone for SelectExpression
Source§fn clone(&self) -> SelectExpression
fn clone(&self) -> SelectExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SelectExpression
impl Debug for SelectExpression
Source§impl<'de> Deserialize<'de> for SelectExpression
impl<'de> Deserialize<'de> for SelectExpression
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 SelectExpression
impl PartialEq for SelectExpression
Source§fn eq(&self, other: &SelectExpression) -> bool
fn eq(&self, other: &SelectExpression) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SelectExpression
impl Serialize for SelectExpression
impl StructuralPartialEq for SelectExpression
Auto Trait Implementations§
impl Freeze for SelectExpression
impl RefUnwindSafe for SelectExpression
impl Send for SelectExpression
impl Sync for SelectExpression
impl Unpin for SelectExpression
impl UnsafeUnpin for SelectExpression
impl UnwindSafe for SelectExpression
Blanket Implementations§
impl<T> Allocation for T
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