SqlTableColumn<T> class final

A table-owned SQL column with one statically fixed Dart value type.

Implemented types
Available extensions

Properties

ascending → SqlOrder
Orders this column from lowest to highest.
no setter
codec → SqlCodec<T>
Dart-to-SQL value codec.
no setter
descending → SqlOrder
Orders this column from highest to lowest.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isNotNull → SqlPredicate
Tests this column for a non-NULL SQL value.
no setter
isNull → SqlPredicate
Tests this column for SQL NULL.
no setter
name → String
Physical column name.
no setter
optional → SqlSelection<T?>

Available on SqlSelection<T>, provided by the SqlSelectionModifiers extension

Decodes SQL NULL as null, typically for the right side of a LEFT JOIN.
no setter
resultColumn → SqlColumn<T>
Named result decoder and value codec for this column.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
table → SqlTable<Object?>
Table that owns this column.
final

Methods

as(String alias) → SqlSelection<T>

Available on SqlSelection<T>, provided by the SqlSelectionModifiers extension

Gives this result column an explicit SQL alias.
equals(T value) → SqlPredicate
Creates an equality predicate.
equalsColumn(SqlTableColumn<T?> other) → SqlPredicate
Creates a type-safe equality predicate between two columns.
greaterThan(T value) → SqlPredicate
Creates a greater-than predicate.
greaterThanOrEqual(T value) → SqlPredicate
Creates a greater-than-or-equal predicate.
incrementBy(T delta) → SqlUpdateAssignment

Available on SqlTableColumn<T>, provided by the SqlNumericColumnUpdates extension

Adds delta to this column in the database.
isIn(Iterable<T> values) → SqlPredicate
Tests whether this column equals one of values.
isNotIn(Iterable<T> values) → SqlPredicate
Tests whether this column differs from every value in values.
lessThan(T value) → SqlPredicate
Creates a less-than predicate.
lessThanOrEqual(T value) → SqlPredicate
Creates a less-than-or-equal predicate.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notEquals(T value) → SqlPredicate
Creates an inequality predicate.
notEqualsColumn(SqlTableColumn<T?> other) → SqlPredicate
Creates a type-safe inequality predicate between two columns.
read(SqlRow row, int index) → T
Decodes this column from a raw transport row at index.
override
set(T value) → SqlAssignment
Creates a type-safe INSERT or UPDATE assignment.
toString() → String
A string representation of this object.
inherited

Operators

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