final class WindowDefinition
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

A named window of the WINDOW clause of a selection.

Source: https://sqlite.org/windowfunctions.html#window_chaining.

Reading a named windowdoctest
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT rank() OVER w FROM t WINDOW w AS (ORDER BY a)');
    [$query->statement->windows[0]->name->value, count($query->statement->windows[0]->window->order)] // => ['w', 1]

Properties§

public Name $name
public WindowSpec $window

Methods§

public function __construct(public Name $name, public WindowSpec $window)

Parameters

$nameNameThe window name
$windowWindowSpecThe specification
public function render(Output $out): void

Writes the definition.

Parameters

$outOutput
Calls 2

Test cases 2§

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

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Constant reads 1