MssqlWindow constructor
MssqlWindow({
- Iterable<
MssqlExpression> partitionBy = const <MssqlExpression>[], - Iterable<
MssqlOrder> orderBy = const <MssqlOrder>[], - MssqlWindowFrame? frame,
Implementation
MssqlWindow({
Iterable<MssqlExpression> partitionBy = const <MssqlExpression>[],
Iterable<MssqlOrder> orderBy = const <MssqlOrder>[],
this.frame,
}) : partitionBy = List<MssqlExpression>.unmodifiable(partitionBy),
orderBy = List<MssqlOrder>.unmodifiable(orderBy) {
if (frame != null && this.orderBy.isEmpty) {
throw ArgumentError.value(
frame,
'frame',
'a frame counts rows either side of the current one, which needs an '
'order to count in. Add orderBy, or drop the frame.',
);
}
}