interfaceWindowSpecification
interface WindowSpecification
extends Node
Public API: explicitly declared with
@visibility public.A window specification: an optional existing window name, partitioning, ordering and frame.
It is written after OVER and in the WINDOW clause. The function-like expression family provides the structure; the query family holds it in named windows and derives it there with deriveWindow(). Source: https://dev.mysql.com/doc/refman/8.4/en/window-functions-usage.html.
$call = new \SqlSemantics\Platform\MySql\Statement\Call\Window\WindowFunction(\SqlSemantics\Platform\MySql\Statement\Call\Window\WindowFunctionKind::RowNumber, [], new \SqlSemantics\Platform\MySql\Statement\Call\Window\WindowSpec());
$call->over instanceof \SqlSemantics\Platform\MySql\Statement\Call\WindowSpecification // => trueMethods§
public function deriveWindow(Derivation $derivation, Environment $environment): voidDerives every expression the specification holds, the partitioning, the ordering and the frame offsets, at the position of the window.
Parameters
$derivation | Derivation | |
$environment | Environment |
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§
Type checks 1
Type declarations 10
- type SqlSemantics\Platform\MySql\Lowering\Call\CallRules packages/sql-semantics-mysql/src/Lowering/Call/CallRules.php:125
- type SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:189
- type SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:205
- type SqlSemantics\Platform\MySql\Rules\Call\Windows packages/sql-semantics-mysql/src/Rules/Call/Windows.php:32
- type SqlSemantics\Platform\MySql\Rules\Call\Windows packages/sql-semantics-mysql/src/Rules/Call/Windows.php:42
- type SqlSemantics\Platform\MySql\Statement\Call\Aggregate\Aggregate packages/sql-semantics-mysql/src/Statement/Call/Aggregate/Aggregate.php:61
- type SqlSemantics\Platform\MySql\Statement\Call\Aggregate\GroupConcat packages/sql-semantics-mysql/src/Statement/Call/Aggregate/GroupConcat.php:71
- type SqlSemantics\Platform\MySql\Statement\Call\Aggregate\JsonObjectAggregate packages/sql-semantics-mysql/src/Statement/Call/Aggregate/JsonObjectAggregate.php:54
- type SqlSemantics\Platform\MySql\Statement\Call\Window\WindowFunction packages/sql-semantics-mysql/src/Statement/Call/Window/WindowFunction.php:61
- type SqlSemantics\Platform\MySql\Statement\Query\Clause\WindowDefinition packages/sql-semantics-mysql/src/Statement/Query/Clause/WindowDefinition.php:33