WebSqlWhere class

A simple WHERE clause parser. Handles:

  • col = ? / col = literal
  • col != ? / col <> ?
  • col > ? / col >= ? / col < ? / col <= ?
  • col LIKE 'pattern%'

Multiple predicates joined with AND or OR are supported. Operator precedence: AND binds tighter than OR (matches SQL standard). Use parentheses to override.

Properties

bindCount → int
The number of ? placeholders in the WHERE clause.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
singlePredicate → WebSqlPredicate?
Returns the single predicate iff the WHERE clause is exactly one predicate (no AND / OR combining). Otherwise returns null. Used by the WebQueryPlanner to detect push-down candidates.
no setter

Methods

matches(Map<String, Object?> row, List<Object?> binds) → bool
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

Static Methods

parse(String clause) → WebSqlWhere?