Where class abstract
Abstract base class for WHERE clause conditions.
The Where class provides the foundation for building WHERE conditions in SQL queries. It can contain multiple SQL conditions that are combined with AND by default.
Subclasses can override the toSQL method to implement different combination logic (e.g., OR, custom grouping).
Example usage:
// Used indirectly through concrete implementations like WhereOne, OrWhere, etc.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
SQL whereBody) → Where - Adds a SQL condition to this WHERE clause.
-
clear(
) → Where - Clears all conditions from this WHERE clause.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toSQL(
) → String -
Generates SQL by combining all conditions with AND.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited