pub enum SqlOp {
Show 14 variants
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
Is,
IsNot,
In,
NotIn,
Like,
NotLike,
Ilike,
NotIlike,
}Expand description
Comparison / membership operators (query-builder.ts simpleConditionToSQL).
Most lower to their raw SQL spelling verbatim; In/NotIn lower to a
json_each(?) subquery over a JSON-array literal (query-builder.ts:196-205);
the Like family appends ESCAPE '\' and Ilike lowers both sides through
lower(...) (query-builder.ts likeConditionToSQL). Is/IsNot are the
NULL-aware equality operators in the JS SimpleOperator set (ast.ts:37): they
reach the WHERE verbatim (a user .where(c, 'IS', null), and the engine’s
NOT EXISTS → field IS NOT literal rewrite, resolve-scalar-subqueries.ts:176).
Distinct from the start-bound’s nullable-aware =/IS choice (§3.7), which is
a SEPARATE code path keyed on column optionality, not a user operator.
Variants§
Trait Implementations§
impl Copy for SqlOp
impl Eq for SqlOp
impl StructuralPartialEq for SqlOp
Auto Trait Implementations§
impl Freeze for SqlOp
impl RefUnwindSafe for SqlOp
impl Send for SqlOp
impl Sync for SqlOp
impl Unpin for SqlOp
impl UnsafeUnpin for SqlOp
impl UnwindSafe for SqlOp
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