WindowFrame.range constructor

WindowFrame.range({
  1. Object? preceding,
  2. Object? following,
  3. Object? unit,
})

A frame of inputs by the value of the (single) sort key of the window: the inputs whose sort value is at most preceding below and at most following above that of the current input. current includes the inputs tied with the current one.

unit ('microsecond', 'millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month', 'quarter', 'year' or an Expression) makes the offsets durations, for a timestamp sort key.

Implementation

WindowFrame.range({Object? preceding, Object? following, Object? unit})
  : this._('range', preceding, following, unit);