OrWhere class

Represents a WHERE clause that combines multiple conditions with OR.

This class is used when you need any of several conditions to be true, rather than all conditions (which would use AND).

Example usage:

var orWhere = OrWhere([
  Condition(QField('status'), QO.EQ, QVar('active')),
  Condition(QField('status'), QO.EQ, QVar('pending'))
]); // WHERE ( ( status = 'active' ) OR ( status = 'pending' ) )
Inheritance

Constructors

OrWhere.new([List<SQL>? whereBodies])
Creates an OR WHERE clause with optional initial conditions.

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
Generates SQL by combining all conditions with OR.
override
toString() String
A string representation of this object.
inherited

Operators

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