MssqlProjection<R> class

Column list, aliases, and MssqlRow → R in one descriptor.

A list screen holds OrderListItem.projection, not a second ad-hoc SELECT plus a hand-written mapper that can drift apart.

Annotations
  • @immutable

Constructors

MssqlProjection({required String name, required List<MssqlProjectionColumn> columns, required R map(MssqlRow row)})

Properties

columns List<MssqlProjectionColumn>
final
hashCode int
The hash code for this object.
no setterinherited
map → R Function(MssqlRow row)
final
name String
User-facing name, used in conversion errors.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectList List<MssqlExpression>
no setter

Methods

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

Static Methods

decode<T>(MssqlRow row, int index, {required String projection, required String column, MssqlExpression? expression, bool required = false}) → T
Reads index as T, naming name on a conversion failure.