pub enum ExprNode {
Show 18 variants Expr(Expr), SqlExpr(String), Identifier(String), CompoundIdentifier { alias: String, ident: String, }, Between { expr: Box<ExprNode>, negated: bool, low: Box<ExprNode>, high: Box<ExprNode>, }, Like { expr: Box<ExprNode>, negated: bool, pattern: Box<ExprNode>, }, ILike { expr: Box<ExprNode>, negated: bool, pattern: Box<ExprNode>, }, BinaryOp { left: Box<ExprNode>, op: BinaryOperator, right: Box<ExprNode>, }, UnaryOp { op: UnaryOperator, expr: Box<ExprNode>, }, IsNull(Box<ExprNode>), IsNotNull(Box<ExprNode>), InList { expr: Box<ExprNode>, list: Box<InListNode>, negated: bool, }, Nested(Box<ExprNode>), Function(Box<FunctionNode>), Aggregate(Box<AggregateNode>), Exists { subquery: Box<QueryNode>, negated: bool, }, Subquery(Box<QueryNode>), Case { operand: Option<Box<ExprNode>>, when_then: Vec<(ExprNode, ExprNode)>, else_result: Option<Box<ExprNode>>, },
}
Expand description

Available expression builder functions

Variants

Expr(Expr)

SqlExpr(String)

Identifier(String)

CompoundIdentifier

Fields

alias: String
ident: String

Between

Fields

expr: Box<ExprNode>
negated: bool
low: Box<ExprNode>
high: Box<ExprNode>

Like

Fields

expr: Box<ExprNode>
negated: bool
pattern: Box<ExprNode>

ILike

Fields

expr: Box<ExprNode>
negated: bool
pattern: Box<ExprNode>

BinaryOp

Fields

left: Box<ExprNode>
right: Box<ExprNode>

UnaryOp

Fields

expr: Box<ExprNode>

IsNull(Box<ExprNode>)

IsNotNull(Box<ExprNode>)

InList

Fields

expr: Box<ExprNode>
list: Box<InListNode>
negated: bool

Nested(Box<ExprNode>)

Function(Box<FunctionNode>)

Aggregate(Box<AggregateNode>)

Exists

Fields

subquery: Box<QueryNode>
negated: bool

Subquery(Box<QueryNode>)

Case

Fields

operand: Option<Box<ExprNode>>
when_then: Vec<(ExprNode, ExprNode)>
else_result: Option<Box<ExprNode>>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.