ResultColumn<T> class final

One result label and its storage/domain codec, with no write constraints.

Inheritance

Constructors

ResultColumn(String name, Codec<T> codec)
Declares one nonempty SQL result label.

Properties

codec Codec<T>
Decodes this result; it does not prove SQL nullability or expression type.
final
columns List<ResultColumn<Object?>>
Required labels and codecs. Extra SQL columns are ignored.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
name String
Exact SQL result label, case sensitive.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(List<String> labels) → T Function(List<Object?>)
Resolves labels before reading any rows, including an empty result. Missing or duplicate required labels fail with SQL.RESULT.
inherited
map<T>(T mapper(T)) ResultShape<T>
Converts decoded values into a record or application model.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nullable() ResultColumn<T?>
Accepts SQL NULL without changing the original codec or physical schema.
toString() String
A string representation of this object.
inherited

Operators

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