DVFilter class sealed
Which records an operation applies to: a tree of comparisons, rather than a WHERE string only a SQL engine could run.
It compares as SQL does: a comparison against a missing or null value never matches, DVFilter.isNull is how null is found.
Constructors
-
DVFilter.all(List<
DVFilter> filters) -
Every one of
filters. None at all matches everything, and is refused by an update or a delete.constfactory -
DVFilter.any(List<
DVFilter> filters) -
At least one of
filters.constfactory - DVFilter.compare(String field, DVCompare compare, Object? value)
-
fieldcompared withvaluebycompare.constfactory - DVFilter.equals(String field, Object? value)
-
fieldequal tovalue.factory - DVFilter.isNotNull(String field)
-
fieldpresent and not null.factory - DVFilter.isNull(String field)
-
fieldmissing or null.constfactory
Properties
Methods
-
matches(
Map< String, Object?> record) → bool -
Whether
recordis one of the records this filter picks. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited