pub enum Expr {
Col(String),
Param(SqlParam),
Binary {
left: Box<Expr>,
op: &'static str,
right: Box<Expr>,
},
Like {
left: Box<Expr>,
right: SqlParam,
},
InList {
left: Box<Expr>,
list: Vec<SqlParam>,
},
Group(Box<Expr>),
}Variants§
Implementations§
Source§impl Expr
impl Expr
pub fn eq(self, rhs: Expr) -> Expr
pub fn ne(self, rhs: Expr) -> Expr
pub fn gt(self, rhs: Expr) -> Expr
pub fn ge(self, rhs: Expr) -> Expr
pub fn lt(self, rhs: Expr) -> Expr
pub fn le(self, rhs: Expr) -> Expr
pub fn and(self, rhs: Expr) -> Expr
pub fn or(self, rhs: Expr) -> Expr
pub fn like(self, pattern: Expr) -> Expr
pub fn in_list(self, list: Vec<Expr>) -> Expr
pub fn group(self) -> Expr
pub fn to_sql_with( &self, style: PlaceholderStyle, params: &mut Vec<SqlParam>, ) -> String
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 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