final class WindowRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

Lowers window specifications, frames and the WINDOW clause.

Rule: SQLITE-WINDOW-LOWER-001. Scope: window, frame_opt, range_or_rows, frame_bound_s, frame_bound_e, frame_bound, frame_exclude_opt, frame_exclude, window_clause, windowdefn_list, windowdefn. A window keeps its base window name, partition, ordering and frame as written. Terminates: lists are flattened iteratively; every part is a strict subtree. Source: https://sqlite.org/windowfunctions.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function window(Node $window): WindowSpec
public function definitions(Node $clause): list<WindowDefinition>

Lowers a window_clause into its definitions in written order.

Parameters

$clauseNode

Returns

Throws

ImplementationGap When a production has no rule
Calls 5

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1
Type declarations 1