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

One named window of a WINDOW clause.

The selection that holds the definition derives its specification. Source: https://dev.mysql.com/doc/refman/8.4/en/window-functions-named-windows.html.

Reading the name of a windowdoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t WINDOW w AS (ORDER BY a)');
    $query->statement->windows[0]->name->value // => 'w'

Properties§

public Name $name
public WindowSpecification $specification

Methods§

public function __construct(public Name $name, public WindowSpecification $specification)

Parameters

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

Writes the definition.

Parameters

$outOutput
Calls 2

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
Constant reads 1