MssqlWindow constructor

MssqlWindow({
  1. Iterable<MssqlExpression> partitionBy = const <MssqlExpression>[],
  2. Iterable<MssqlOrder> orderBy = const <MssqlOrder>[],
  3. 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.',
    );
  }
}