QO enum

Enumeration of SQL comparison and logical operators.

The QO enum provides all common SQL operators used in WHERE conditions, HAVING clauses, and other conditional expressions. Each enum value implements the SQL interface to generate the appropriate operator symbol.

Example usage:

var condition1 = Condition(QField('age'), QO.GT, QVar(18)); // age > 18
var condition2 = Condition(QField('status'), QO.IN, QVar(['active', 'pending'])); // status IN ('active', 'pending')
var condition3 = Condition(QField('email'), QO.LIKE, QVarLike('gmail.com', left: true, right: false)); // email LIKE '%gmail.com'
Inheritance
Implemented types
Available extensions

Values

EQ → const QO

Equals operator (=)

NEQ → const QO

Not equals operator (!=)

GT → const QO

Greater than operator (>)

LT → const QO

Less than operator (<)

GTE → const QO

Greater than or equal operator (>=)

LTE → const QO

Less than or equal operator (<=)

IN → const QO

IN operator for list membership

NOT_IN → const QO

NOT IN operator for list exclusion

LIKE → const QO

LIKE operator for pattern matching

NOT_LIKE → const QO

NOT LIKE operator for pattern exclusion

BETWEEN → const QO

BETWEEN operator for range checks

NOT_BETWEEN → const QO

NOT BETWEEN operator for range exclusion

IS_NULL → const QO

IS NULL operator for null checks

IS_NOT_NULL → const QO

IS NOT NULL operator for non-null checks

EXISTS → const QO

EXISTS operator for subquery existence checks

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSQL() String
Converts the operator enum to its SQL string representation.
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<QO>
A constant List of the values in this enum, in order of their declaration.