pub enum RowScope {
All,
Compare {
column: String,
value: SqlValue,
ordering: Ordering,
inclusive: bool,
},
Null {
column: String,
not: bool,
},
In {
column: String,
values: Vec<SqlValue>,
},
Row(Arc<RowCondition>),
Joined {
column: String,
lookup: Arc<Lookup>,
},
Window(Arc<RowWindow>),
And(Box<Self>, Box<Self>),
Or(Box<Self>, Box<Self>),
}Expand description
A predicate over a table’s rows. A change reruns a query when its row passes in its old or its new image.
Variants§
All
Every row.
Compare
Rows whose column compares with value as ordering, or equal too
when inclusive.
Fields
Null
Rows whose column is NULL, or is not NULL when not.
Fields
In
Rows whose column equals one of values, sorted in SQLite’s order
with NULLs and repeats left out: made by RowScope::equal.
Fields
Row(Arc<RowCondition>)
Rows a condition on their columns holds for, which a write judges by
asking SQLite (scope_row.rs).
Joined
Rows whose column equals a value some row of another source holds
in its own scope: a join, which a write judges by running lookup.
Fields
Window(Arc<RowWindow>)
Rows that fewer than a subquery’s LIMIT rows of their window sort
before, which a write judges by asking SQLite (scope_window.rs).
And(Box<Self>, Box<Self>)
Rows both scopes pass.
Or(Box<Self>, Box<Self>)
Rows either scope passes.