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