classWindowDefinition
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.
$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 $namepublic WindowSpecification $specificationMethods§
public function __construct(public Name $name, public WindowSpecification $specification)Parameters
$name | Name | The window name |
$specification | WindowSpecification | The window |
public function render(Output $out): voidWrites the definition.
Parameters
$out | Output |
Calls 2
- method-call Output::name() line 42
- class-const NameUse::Alias() line 42
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
WindowDefinitionTestcalls