Union<T> class

Represents the UNION of two subqueries.

Inheritance

Constructors

Union(QueryBase<T> left, QueryBase<T> right, {bool all = false, String? tableName})

Properties

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

Methods

compile(Set<String> trampoline, {bool includeTableName = false, String? preamble, bool withFields = true}) String
override
deserialize(List row) → Optional<T>
override
deserializeList(List<List> it) List<T>
inherited
get(QueryExecutor executor) Future<List<T>>
inherited
getOne(QueryExecutor executor) Future<Optional<T>>
inherited
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>
inherited
unionAll(QueryBase<T> other) Union<T>
inherited

Operators

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