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.

Holding a specification as the window of a calldoctest
$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 // => true

Methods§

public function deriveWindow(Derivation $derivation, Environment $environment): void

Derives every expression the specification holds, the partitioning, the ordering and the frame offsets, at the position of the window.

Parameters

$derivationDerivation
$environmentEnvironment

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§

Implemented by 1
Type checks 1
Type declarations 10