final class FromClause
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

From clause operations for PostgreSQL relation.

Methods§

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

Parameters

$tokenslist<SqlToken>
$indexint
$keywordsnon-empty-list<string>

Returns

bool
Test cases 1
Called from 1
public function parenthesizedReferences(
    string $clause,
    list<SqlToken> $tokens,
    int $index,
    SqlToken $token,
): list<array{name: string, start: int, unqualifiedStart: int, end: int}>

Recurses into joined relations while leaving subquery scopes to their own parser.

Parameters

$clausestring
$tokenslist<SqlToken>
$indexint
$tokenSqlToken

Returns

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

Test cases 34§

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

Dedicated tests 4
Other tests reaching this symbol 30

Relations§

Instantiated in 3
Method calls 3