pub enum Expr {
Show 20 variants
Literal(Value),
Column(String),
QualifiedColumn {
table: String,
column: String,
},
BinaryOp {
left: Box<Expr>,
op: BinOp,
right: Box<Expr>,
},
UnaryOp {
op: UnaryOp,
expr: Box<Expr>,
},
IsNull(Box<Expr>),
IsNotNull(Box<Expr>),
Function {
name: String,
args: Vec<Expr>,
},
CountStar,
InSubquery {
expr: Box<Expr>,
subquery: Box<SelectStmt>,
negated: bool,
},
InList {
expr: Box<Expr>,
list: Vec<Expr>,
negated: bool,
},
Exists {
subquery: Box<SelectStmt>,
negated: bool,
},
ScalarSubquery(Box<SelectStmt>),
InSet {
expr: Box<Expr>,
values: HashSet<Value>,
has_null: bool,
negated: bool,
},
Between {
expr: Box<Expr>,
low: Box<Expr>,
high: Box<Expr>,
negated: bool,
},
Like {
expr: Box<Expr>,
pattern: Box<Expr>,
escape: Option<Box<Expr>>,
negated: bool,
},
Case {
operand: Option<Box<Expr>>,
conditions: Vec<(Expr, Expr)>,
else_result: Option<Box<Expr>>,
},
Coalesce(Vec<Expr>),
Cast {
expr: Box<Expr>,
data_type: DataType,
},
Parameter(usize),
}Variants§
Literal(Value)
Column(String)
QualifiedColumn
BinaryOp
UnaryOp
IsNull(Box<Expr>)
IsNotNull(Box<Expr>)
Function
CountStar
InSubquery
InList
Exists
ScalarSubquery(Box<SelectStmt>)
InSet
Between
Like
Case
Coalesce(Vec<Expr>)
Cast
Parameter(usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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