SqlColumn<T> class final

A named SQL column with one Dart value codec.

Constructors

SqlColumn(String name, SqlCodec<T> codec)
Creates a typed column.
const

Properties

codec → SqlCodec<T>
Codec used to bind and decode this column.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
Expected result label and schema column name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

as(String alias) → SqlColumn<T>
Creates a query-local alias using the same codec.
bind(T value) → SqlValue
Encodes value as a bound parameter.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(SqlRow row, int index) → T
Decodes this column from row at index.
toString() → String
A string representation of this object.
inherited

Operators

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