pub enum SqlOp<'a> {
Add(Expression<'a>, Expression<'a>),
Sub(Expression<'a>, Expression<'a>),
Mul(Expression<'a>, Expression<'a>),
Div(Expression<'a>, Expression<'a>),
Rem(Expression<'a>, Expression<'a>),
Append(Expression<'a>, Expression<'a>),
JsonDeleteAtPath(Expression<'a>, Expression<'a>),
}
Expand description
Calculation operations in SQL queries.
Variants§
Add(Expression<'a>, Expression<'a>)
Sub(Expression<'a>, Expression<'a>)
Mul(Expression<'a>, Expression<'a>)
Div(Expression<'a>, Expression<'a>)
Rem(Expression<'a>, Expression<'a>)
Append(Expression<'a>, Expression<'a>)
JsonDeleteAtPath(Expression<'a>, Expression<'a>)
Trait Implementations§
Source§impl<'a> From<SqlOp<'a>> for Expression<'a>
impl<'a> From<SqlOp<'a>> for Expression<'a>
impl<'a> StructuralPartialEq for SqlOp<'a>
Auto Trait Implementations§
impl<'a> Freeze for SqlOp<'a>
impl<'a> RefUnwindSafe for SqlOp<'a>
impl<'a> Send for SqlOp<'a>
impl<'a> Sync for SqlOp<'a>
impl<'a> Unpin for SqlOp<'a>
impl<'a> UnwindSafe for SqlOp<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Conjunctive<'a> for Twhere
T: Into<Expression<'a>>,
impl<'a, T> Conjunctive<'a> for Twhere
T: Into<Expression<'a>>,
Source§fn and<E>(self, other: E) -> ConditionTree<'a>where
E: Into<Expression<'a>>,
fn and<E>(self, other: E) -> ConditionTree<'a>where
E: Into<Expression<'a>>,
Builds an
AND
condition having self
as the left leaf and other
as the right.Source§fn or<E>(self, other: E) -> ConditionTree<'a>where
E: Into<Expression<'a>>,
fn or<E>(self, other: E) -> ConditionTree<'a>where
E: Into<Expression<'a>>,
Builds an
OR
condition having self
as the left leaf and other
as the right.Source§fn not(self) -> ConditionTree<'a>
fn not(self) -> ConditionTree<'a>
Builds a
NOT
condition having self
as the condition.