classSelectOptionsRule
final class SelectOptionsRule
implements RewriteRule
gram.y:insertSelectOptions merges parenthesized query options into the same SelectStmt.
Methods§
public function rewrite(TerminalSequence $sequence): TerminalSequenceKeeps the innermost sort, limit options and WITH, stopping at new SELECT or set-operation nodes.
Parameters
$sequence | TerminalSequence |
Returns
Test cases 2
Calls 3
- method-call TerminalSequence::occurrences() line 37
- method-call SelectOptionsRule::query() line 43
- method-call TerminalSequence::range() line 44
public function query(
array<int, ProductionOccurrence> $byId,
ProductionOccurrence $clause,
): ?intOnly grammar wrappers returning the identical SelectStmt share option ownership.
Parameters
$byId | array<int, ProductionOccurrence> | |
$clause | ProductionOccurrence |
Returns
?intTest cases 1
Called from 1
Calls 1
- function-call
in_arrayline 64
Test cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 6
MySqlProviderTestcallsGenerationContextTestcallsRewriteDefinitionsTestcallsSqlGeneratorFactoryTestcallsPostgreSqlProviderTestcallsSqliteProviderTestcalls