InferredResultSet class

Constructors

InferredResultSet(MatchingMoorTable? matchingTable, List<ResultColumn> columns, {List<NestedResult> nestedResults = const [], String? resultClassName, bool dontGenerateResultClass = false})

Properties

columns List<ResultColumn>
final
compatibilityHashCode int
hashCode that matches isCompatibleTo instead of ==.
no setter
dontGenerateResultClass bool
Explicitly controls that no result class should be generated for this result set.
final
hashCode int
The hash code for this object.
no setterinherited
matchingTable MatchingMoorTable?
If the result columns of a SELECT statement exactly match one table, we can just use the data class generated for that table. Otherwise, we'd have to create another class.
final
needsOwnClass bool
Whether a new class needs to be written to store the result of this query.
no setter
nestedResults List<NestedResult>
Tables in the result set that should appear as a class.
final
resultClassName String?
The name of the Dart class generated to store this result set, or null if it hasn't explicitly been set.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleColumn bool
Whether this query returns a single column that should be returned directly.
no setter

Methods

dartNameFor(ResultColumn column) String
Suggests an appropriate name that can be used as a dart field for the column.
forceDartNames(Map<ResultColumn, String> names) → void
isCompatibleTo(InferredResultSet other) bool
Checks whether this and the other result set have the same columns and nested result sets.
nestedPrefixFor(NestedResult table) String?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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