classCtePrefixMerger
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,
): stringMerges a parsed original WITH header with generated CTE declarations.
Parameters
$originalSql | string | |
$statementOffset | int | |
$rewrittenBody | string | |
$rewrittenTail | string |
Returns
stringTest cases 2
Called from 1
Calls 4
- static-call SqlTokenStream::tokenize() line 22
- static-call SqliteLexerProfile::create() line 22
- function-call
trimline 31 - function-call
substrline 31
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
ReferencedTableLookupTestcallsSqliteCteShadowComposerTestcallsSqliteRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsInsertTransformerTestcallsSelectTransformerTestcallsSqliteTransformerTestcallsUpdateTransformerTestcallsSqliteSessionFactoryTestcalls