final class SelectOptionsRule
    implements RewriteRule

gram.y:insertSelectOptions merges parenthesized query options into the same SelectStmt.

Methods§

public function rewrite(TerminalSequence $sequence): TerminalSequence

Keeps the innermost sort, limit options and WITH, stopping at new SELECT or set-operation nodes.

Parameters

Test cases 34
Calls 3
public function query(
    array<int, ProductionOccurrence> $byId,
    ProductionOccurrence $clause,
): ?int

Only grammar wrappers returning the identical SelectStmt share option ownership.

Parameters

Returns

?int
Test cases 33
Called from 1
Calls 1

Test cases 41§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 35
Other tests reaching this symbol 6

Relations§

Instantiated in 1