WindowFrame in sqlparser::ast - Rust

Struct WindowFrame 

Source

pub struct WindowFrame {
    pub units: WindowFrameUnits,
    pub start_bound: WindowFrameBound,
    pub end_bound: Option<WindowFrameBound>,
}
Expand description

Specifies the data processed by a window function, e.g. RANGE UNBOUNDED PRECEDING or ROWS BETWEEN 5 PRECEDING AND CURRENT ROW.

Note: The parser does not validate the specified bounds; the caller should reject invalid bounds like ROWS UNBOUNDED FOLLOWING before execution.

Units for the frame (e.g. ROWS, RANGE, GROUPS).

The start bound of the window frame.

The right bound of the BETWEEN .. AND clause. The end bound of None indicates the shorthand form (e.g. ROWS 1 PRECEDING), which must behave the same as end_bound = WindowFrameBound::CurrentRow.

§
§
§
§
§
§