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

Parses table sources, qualified identifiers and relation-clause boundaries.

Methods§

public function referenceAt(
    string $sql,
    list<SqlToken> $tokens,
    int $index,
): array{name: string, start: int, unqualifiedStart: int, end: int}|null
public function matchesKeywordSequence(
    list<SqlToken> $tokens,
    int $index,
    non-empty-list<string> $keywords,
): bool
public function nestedReferences(
    string $clause,
    int $start,
    int $end,
): list<array{name: string, start: int, unqualifiedStart: int, end: int}>

Finds parenthesized join sources and translates their offsets to the enclosing clause.

Parameters

$clausestring
$startint
$endint

Returns

list<array{name: string, start: int, unqualifiedStart: int, end: int}>
Test cases 1
Called from 1
Calls 3

Test cases 40§

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

Dedicated tests 8
Other tests reaching this symbol 32

Relations§

Instantiated in 5
Method calls 5