QueryBase<T> class abstract

A base class for objects that compile to SQL queries, typically within an ORM.

Implementers

Constructors

QueryBase()

Properties

aliases Map<String, String>
AS aliases to inject into the query, if any.
getter/setter pair
casts Map<String, String>
Casts to perform when querying the database.
no setter
fields List<String>
The list of fields returned by this query.
no setter
fieldSet String
A String of all fields, joined by a comma (,).
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
substitutionValues Map<String, dynamic>
Values to insert into a prepared statement.
final
tableName String
The table against which to execute this query.
no setter

Methods

compile(Set<String> trampoline, {bool includeTableName = false, String preamble = '', bool withFields = true}) String
deserialize(List row) → Optional<T>
deserializeList(List<List> it) List<T>
get(QueryExecutor executor) Future<List<T>>
getOne(QueryExecutor executor) Future<Optional<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
union(QueryBase<T> other) Union<T>
unionAll(QueryBase<T> other) Union<T>

Operators

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