Selecto.Window.Frame (Selecto v0.4.3)

Window frame specification (ROWS or RANGE).

Defines which rows within the partition are included in the window frame for the current row's calculation.

Link to this section Summary

Link to this section Types

@type boundary() ::
  :unbounded_preceding
  | :current_row
  | :unbounded_following
  | {:preceding, integer()}
  | {:following, integer()}
  | {:interval, String.t()}
Link to this type

frame_type()

@type frame_type() :: :rows | :range
@type t() :: %Selecto.Window.Frame{
  end: boundary(),
  start: boundary(),
  type: frame_type()
}