SelectQuery class

Base class for a select query.

Takes the generated code table from a StanzaEntity

Constructors

SelectQuery(Table table)

Properties

bracketDepth ↔ int
read / write, inherited
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
substitutionValues → Map<String, dynamic>
read-only, inherited
table Table
read-only, inherited
whereClauses → String
read-only, inherited

Methods

fork() SelectQuery
Reproduce a partial query to use in a loop or other dynamic pattern.
groupBy(List<Field> fields) → void
Group a select query by a list of Fields
limit(int i) → void
Limit the number of results returned by a query.
offset(int i) → void
Offset the results returned by a query by this number of rows.
orderBy(Field field, { bool descending: false }) → void
Order a select query by the provided Field. [...]
selectFields(List<Field> fields) → void
Select a list of Fields from a StanzaEntity table.
selectStar(Table table) → void
Select all the Fields from a StanzaEntity table.
statement({bool pretty: false }) → String
addSubstitution(ValueSub sub) → void
inherited
and(Field field, { bool openBracket: false, bool closeBracket: false }) → WhereOperation
Continue a conditional statement with an AND condition. [...]
inherited
cloner() → WhereClauseCloner
inherited
importSubstitutionValues(Map<String, dynamic> subs) → void
inherited
importWhereClauses(WhereClauseCloner cloner) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
or(Field field, { bool openBracket: false, bool closeBracket: false }) → WhereOperation
Continue a conditional statement with an OR condition. [...]
inherited
toString() → String
Print a query to the console.
inherited
where(Field field, { bool openBracket: false, bool closeBracket: false }) → WhereOperation
Begin a conditional statement in a query. [...]
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited