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

Header parser operations for PostgreSQL cte.

Methods§

public function findAsIndex(list<SqlToken> $tokens, int $start): ?int
public function topLevelTokens(string $sql): list<SqlToken>

Retains top-level tokens while treating each CTE body as an opaque span.

Parameters

$sqlstring

Returns

list<SqlToken>
Test cases 1
Called from 1
Calls 2
public function bodyStartIndex(list<SqlToken> $tokens, int $index): int

Skips AS and the optional materialization modifiers.

Parameters

$tokenslist<SqlToken>
$indexint

Returns

int
Test cases 1
Called from 1
Calls 2

Test cases 26§

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

Dedicated tests 7
Other tests reaching this symbol 19

Relations§

Instantiated in 7
Method calls 7
Type declarations 1