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

Prepends independent generated CTEs while retaining the original recursive prefix.

Methods§

public function prepend(
    string $originalSql,
    int $statementOffset,
    string $rewrittenBody,
    string $rewrittenTail,
): string

Merges a parsed original WITH header with generated CTE declarations.

Parameters

$originalSqlstring
$statementOffsetint
$rewrittenBodystring
$rewrittenTailstring

Returns

string
Test cases 2
Called from 1
Calls 4

Test cases 12§

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

Dedicated tests 2
Other tests reaching this symbol 10

Relations§

Instantiated in 1
Method calls 1