final class SelectionReader
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.

Selection Reader.

Methods§

public function tokenIndexAtOrAfter(list<SqlToken> $tokens, int $offset): int
public function partitionNames(
    string $sql,
    SqlToken $open,
    SqlToken $close,
): non-empty-list<string>
public function hasAlias(list<SqlToken> $tokens, int $index): bool

Parameters

$tokenslist<SqlToken>
$indexint

Returns

bool
Test cases 1
Called from 1
Calls 4
public function partitionSelection(
    string $sql,
    list<SqlToken> $tokens,
    int $partitionIndex,
): array{names: non-empty-list<string>, closeIndex: int}
public function requireNoIndexHint(string $sql, list<SqlToken> $tokens, int $closeIndex): void

Reject index hints after partition validation, retaining rejection precedence.

Parameters

$sqlstring
$tokenslist<SqlToken>
$closeIndexint
Test cases 1
Called from 1
Calls 3

Test cases 19§

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

Dedicated tests 6
Other tests reaching this symbol 13

Relations§

Instantiated in 4
Method calls 4