WhereOne class

Represents a simple WHERE condition with a single comparison.

This is the most common type of WHERE clause, representing a single condition like "field = value" or "field > value".

Example usage:

var where = WhereOne(QField('age'), QO.GT, QVar(18)); // WHERE ( age > 18 )
var where2 = WhereOne(QField('status'), QO.EQ, QVar('active')); // WHERE ( status = 'active' )
Inheritance

Constructors

WhereOne.new(SQL left, QO operator, SQL right)
Creates a simple WHERE condition with left operand, operator, and right operand.

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.
inherited
clear() Where
Clears all conditions from this WHERE clause.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSQL() String
Returns the SQL for the single condition without extra parentheses.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited