classSourceProjection
final class SourceProjection
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.
Projects a partition predicate into a derived relation while preserving its alias.
Methods§
public function edit(
string $sql,
array{name: string, start: int, unqualifiedStart: int, end: int} $reference,
list<SqlToken> $tokens,
int $closeIndex,
string $predicate,
): array{start: int, end: int, replacement: string}Parameters
$sql | string | |
$reference | array{name: string, start: int, unqualifiedStart: int, end: int} | |
$tokens | list<SqlToken> | |
$closeIndex | int | |
$predicate | string |
Returns
array{start: int, end: int, replacement: string}Test cases 2
Called from 1
Calls 3
- function-call
substrline 23 - method-call SelectionReader::hasAlias() line 29
- new SelectionReader line 29
Test cases 14§
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 12
MySqlSessionFactoryTestcallsMySqlRewriterTestcallsMySqlPartitionSelectionRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsInsertTransformerTestcallsMySqlTransformerTestcallsReplaceTransformerTestcallsSelectTransformerTestcallsUpdateTransformerTestcallsRowMutationResolverTestcallsMySqlMutationResolverTestcalls