ResultShape<R> class sealed

Required result labels and typed decoding, independent of physical tables. Compositions are validated at construction. Mapping callbacks run once per actual row, never while compiling or binding empty results.

Implementers

Properties

columns List<ResultColumn<Object?>>
Required labels and codecs. Extra SQL columns are ignored.
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

Methods

bind(List<String> labels) → R Function(List<Object?>)
Resolves labels before reading any rows, including an empty result. Missing or duplicate required labels fail with SQL.RESULT.
map<T>(T mapper(R)) ResultShape<T>
Converts decoded values into a record or application model.
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