pub enum Expression {
Show 20 variants
Column(String),
Literal(LiteralValue),
IntervalLiteral {
value: String,
qualifier: IntervalQualifier,
},
Parameter(usize),
ScalarSubquery(Box<SelectStatement>),
Cast {
expr: Box<Expression>,
target_type: SqlTypeName,
},
Case {
branches: Vec<CaseWhenClause>,
else_expr: Option<Box<Expression>>,
},
ScalarFunctionCall {
function: ScalarFunction,
args: Vec<Expression>,
},
AggregateCall {
function: AggregateFunction,
target: AggregateTarget,
},
UnaryMinus(Box<Expression>),
UnaryNot(Box<Expression>),
Binary {
left: Box<Expression>,
operator: ArithmeticOperator,
right: Box<Expression>,
},
Comparison {
left: Box<Expression>,
operator: ComparisonOperator,
right: Box<Expression>,
},
InList {
expr: Box<Expression>,
values: Vec<Expression>,
is_not: bool,
},
InSubquery {
expr: Box<Expression>,
subquery: Box<SelectStatement>,
is_not: bool,
},
Between {
expr: Box<Expression>,
lower: Box<Expression>,
upper: Box<Expression>,
is_not: bool,
},
Like {
expr: Box<Expression>,
pattern: Box<Expression>,
is_not: bool,
},
Exists {
subquery: Box<SelectStatement>,
is_not: bool,
},
NullCheck {
expr: Box<Expression>,
is_not: bool,
},
Logical {
left: Box<Expression>,
operator: LogicalOperator,
right: Box<Expression>,
},
}Variants§
Column(String)
Literal(LiteralValue)
IntervalLiteral
Parameter(usize)
ScalarSubquery(Box<SelectStatement>)
Cast
Case
ScalarFunctionCall
AggregateCall
UnaryMinus(Box<Expression>)
UnaryNot(Box<Expression>)
Binary
Comparison
InList
InSubquery
Between
Like
Exists
NullCheck
Logical
Implementations§
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
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 Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnsafeUnpin for Expression
impl UnwindSafe for Expression
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