ConditionQuery<T> class

Represents a sql condition statement like

'age > 5'

'SUBSTR(firstName,1,6) CONTAINS ...'

Inheritance

Constructors

ConditionQuery({String? operatorString, QueryPart? before, dynamic after})
Create an instance of ConditionQuery

Properties

after ↔ dynamic
The right operand.
getter/setter pairinherited
before ↔ dynamic
The left operand.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
operatorText → String?
The operator text, for example:
finalinherited
parametersBuilder ↔ List Function()?
Build the sql query of this QueryPart parameters.
getter/setter pairinherited
queryBuilder ↔ String Function()?
Build the sql query of this QueryPart.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

asNamed(String name) → QueryPart
Get QueryPart with custom name.
inherited
buildQuery() → String
Get the sql text represents this QueryPart
inherited
getParameters() → List
Get the parameters of this QueryPart,
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
typeof() → StringField
Get the db type of this query part using TYPEOF() function.
inherited

Operators

operator &(ConditionQuery other) → ConditionQuery
Join two sql condition statements with 'AND'
operator ==(Object other) → bool
The equality operator.
inherited
operator |(ConditionQuery other) → ConditionQuery
Join two sql condition statements with 'OR'