SqlRow class final

One immutable, ordered SQL result row.

Duplicate column names are preserved. Decode by index so joins and repeated labels never overwrite data.

Constructors

SqlRow(List<String> columns, List<SqlValue> values)
Creates a row from equally sized columns and values.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
length → int
Number of ordered columns in this row.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

nameAt(int index) → String
Returns the column label at index.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read<T>(int index, SqlCodec<T> codec, {String? expectedName}) → T
Decodes the value at index with codec.
toString() → String
A string representation of this object.
inherited
valueAt(int index) → SqlValue
Returns the normalized SQL value at index.

Operators

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