pub enum SqlCondition {
Simple {
left: Operand,
op: SqlOp,
right: Operand,
},
And(Vec<SqlCondition>),
Or(Vec<SqlCondition>),
}Expand description
A filter condition lowered to a backend-neutral AST — the input the SQLite
leaf’s build_select_query walks to emit the SELECT WHERE (port of
query-builder.ts NoSubqueryCondition, subqueries already stripped). Pure
data, no rusqlite: the memory backend ignores it entirely (it filters via
RowPredicate); only the SQLite leaf lowers it to SQL text, leaving the
predicate to narrow only the (not-in-SQL) overlay rows. Column operands are
already-resolved ColIds; a literal operand’s OwnedValue variant selects
its SQLite storage form (the JS getJsType → toSQLiteType).
Variants§
Simple
And(Vec<SqlCondition>)
AND of zero-or-more conditions. Empty ⇒ the literal TRUE
(query-builder.ts:174-181).
Or(Vec<SqlCondition>)
OR of zero-or-more conditions. Empty ⇒ the literal FALSE
(query-builder.ts:182-191).
Trait Implementations§
Source§impl Clone for SqlCondition
impl Clone for SqlCondition
Source§fn clone(&self) -> SqlCondition
fn clone(&self) -> SqlCondition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SqlCondition
impl RefUnwindSafe for SqlCondition
impl Send for SqlCondition
impl Sync for SqlCondition
impl Unpin for SqlCondition
impl UnsafeUnpin for SqlCondition
impl UnwindSafe for SqlCondition
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