Enum butane_core::query::BoolExpr
source · pub enum BoolExpr {
Show 15 variants
True,
Eq(&'static str, Expr),
Ne(&'static str, Expr),
Lt(&'static str, Expr),
Gt(&'static str, Expr),
Le(&'static str, Expr),
Ge(&'static str, Expr),
Like(&'static str, Expr),
AllOf(Vec<BoolExpr>),
And(Box<BoolExpr>, Box<BoolExpr>),
Or(Box<BoolExpr>, Box<BoolExpr>),
Not(Box<BoolExpr>),
Subquery {
col: &'static str,
tbl2: Cow<'static, str>,
tbl2_col: &'static str,
expr: Box<BoolExpr>,
},
In(&'static str, Vec<SqlVal>),
SubqueryJoin {
col: &'static str,
tbl2: Cow<'static, str>,
col2: Column,
joins: Vec<Join>,
expr: Box<BoolExpr>,
},
}
Expand description
Abstract representation of a boolean expression.
Variants§
True
Eq(&'static str, Expr)
Ne(&'static str, Expr)
Lt(&'static str, Expr)
Gt(&'static str, Expr)
Le(&'static str, Expr)
Ge(&'static str, Expr)
Like(&'static str, Expr)
AllOf(Vec<BoolExpr>)
And(Box<BoolExpr>, Box<BoolExpr>)
Or(Box<BoolExpr>, Box<BoolExpr>)
Not(Box<BoolExpr>)
Subquery
Expression which is true if the value of col
is present in
the set of values of tbl2_col
where expr
evaluated on a row
in tbl2
is true.
In(&'static str, Vec<SqlVal>)
SubqueryJoin
Expression which is true if the value of col
is present in
the set of values of col2
where expr
evaluated on a row
in tbl2
with the specified joins is true.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BoolExpr
impl Send for BoolExpr
impl Sync for BoolExpr
impl Unpin for BoolExpr
impl UnwindSafe for BoolExpr
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