MssqlColumnRef class

A column named as text, with no declared SQL type.

Every predicate is available on one, because nothing here knows enough to rule any of them out — Col('Name').contains('a') is exactly what the untyped builder is for. Generated code produces MssqlTypedColumn instead, where the type does know, and where total.contains('5') therefore does not compile.

Inheritance
Mixed-in types
Available extensions
Annotations
  • @immutable

Constructors

MssqlColumnRef(String identifier)
MssqlColumnRef.inSource({required MssqlSourceRef source, required String name, required String quotedName})
const
MssqlColumnRef.quoted(String quoted, String name)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
The column's own name, without any qualifier.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → MssqlSourceRef?
The source this column belongs to, or null when it was written in full.
finalinherited

Methods

as(String alias) → MssqlAliased

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

Gives this expression a result alias.
asc({MssqlNulls? nulls}) → MssqlOrder

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

Orders by this expression, ascending.
between(Object? lower, Object? upper) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

betweenColumns(String lower, String upper) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

BETWEEN two other columns rather than two values.
compile(MssqlParameterAllocator parameters, MssqlDialect dialect) → String
Writes this expression's SQL, binding any values through parameters.
inherited
contains(String term) → MssqlCondition

Available on MssqlTextExpression, provided by the MssqlTextOperators extension

LIKE '%term%', with term escaped.
dateBucket({required MssqlDateBucketUnit unit, required int width, DateTime? origin, Duration? zoneOffset}) → MssqlExpression

Available on MssqlTemporalExpression, provided by the MssqlTemporalOperators extension

This value snapped back to a fixed-width bucket: DATE_BUCKET.
desc({MssqlNulls? nulls}) → MssqlOrder

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

Orders by this expression, descending.
endsWith(String term) → MssqlCondition

Available on MssqlTextExpression, provided by the MssqlTextOperators extension

LIKE '%term', with term escaped.
eq(Object? value) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

eqCol(String identifier) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

Compares this expression to another column rather than to a value.
eqExpr(MssqlExpression other) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

Compares this expression to another expression.
gt(Object? value) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

gte(Object? value) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

inList(Iterable<Object?> values) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

inQuery(MssqlSelectQuery query) → MssqlCondition

Available on MssqlExpression, provided by the MssqlSubqueryExpressionOperators extension

inYear(int year, {MssqlOperator operator = MssqlOperator.eq, Duration? zoneOffset}) → MssqlCondition

Available on MssqlTemporalExpression, provided by the MssqlTemporalOperators extension

Every row whose value falls in year, as a half-open range.
isNotNull() → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

isNull() → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

like(String pattern) → MssqlCondition

Available on MssqlTextExpression, provided by the MssqlTextOperators extension

LIKE, with %, _ and [ in pattern treated as literal text.
likeRaw(String pattern) → MssqlCondition

Available on MssqlTextExpression, provided by the MssqlTextOperators extension

LIKE with pattern passed through unescaped, wildcards and all.
lt(Object? value) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

lte(Object? value) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

monthStart() → MssqlExpression

Available on MssqlTemporalExpression, provided by the MssqlTemporalOperators extension

This value snapped back to the first day of its month, as a date.
ne(Object? value) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notBetween(Object? lower, Object? upper) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

notBetweenColumns(String lower, String upper) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

notContains(String term) → MssqlCondition

Available on MssqlTextExpression, provided by the MssqlTextOperators extension

notInList(Iterable<Object?> values) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

notInQuery(MssqlSelectQuery query) → MssqlCondition

Available on MssqlExpression, provided by the MssqlSubqueryExpressionOperators extension

notLike(String pattern) → MssqlCondition

Available on MssqlTextExpression, provided by the MssqlTextOperators extension

notLikeRaw(String pattern) → MssqlCondition

Available on MssqlTextExpression, provided by the MssqlTextOperators extension

onDate(DateTime day, {MssqlOperator operator = MssqlOperator.eq, Duration? zoneOffset}) → MssqlCondition

Available on MssqlTemporalExpression, provided by the MssqlTemporalOperators extension

Every row whose value falls on the calendar day day, as a half-open range.
startsWith(String term) → MssqlCondition

Available on MssqlTextExpression, provided by the MssqlTextOperators extension

LIKE 'term%', with term escaped.
toString() → String
A string representation of this object.
inherited
truncatedTo(MssqlTemporalGrain grain) → MssqlExpression

Available on MssqlTemporalExpression, provided by the MssqlTemporalOperators extension

This value snapped back to the start of its grain.
whereAfterToday() → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

whereBeforeToday() → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

whereDate(Object? value, [MssqlOperator operator = MssqlOperator.eq]) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

Compares the date alone, so the whole day matches rather than midnight.
whereDay(int value, [MssqlOperator operator = MssqlOperator.eq]) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

whereFuture() → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

whereMonth(int value, [MssqlOperator operator = MssqlOperator.eq]) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

whereNowOrFuture() → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

whereNowOrPast() → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

wherePast() → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

Strictly earlier than now, again by the server's clock.
whereTime(Object? value, [MssqlOperator operator = MssqlOperator.eq]) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

Compares the time of day, with the date discarded.
whereToday() → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

The date part equals today, as the server reckons it.
whereTodayOrAfter() → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

whereTodayOrBefore() → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

whereYear(int value, [MssqlOperator operator = MssqlOperator.eq]) → MssqlCondition

Available on MssqlExpression, provided by the MssqlExpressionOperators extension

Operators

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

Static Methods

of(String identifier) → MssqlColumnRef
A short factory: Col('o.Total').