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

Statement Rewriter.

Methods§

public function __construct(
    private MySqlCteShadowComposer $cteComposer,
    private MySqlQueryGuard $guard,
    private MySqlMutationResolver $mutationResolver,
    private MySqlParser $parser,
    private TableDefinitionRegistry $registry,
    private ShadowStore $shadowStore,
    private MySqlTransformer $transformer,
    private ViewDefinitionSet $views,
)

Configure the dependencies used by this operation.

Parameters

public function mutationStatement(Statement $statement, string $sql): Statement

Resolve the main mutation statement behind an optional CTE prefix.

Parameters

$statementStatement
$sqlstring

Returns

Statement
Test cases 1
Called from 1
Calls 2

Private surface 8§

Implementation details, listed for orientation only.

private MySqlCteShadowComposer $cteComposer
private MySqlQueryGuard $guard
private MySqlMutationResolver $mutationResolver
private MySqlParser $parser
private TableDefinitionRegistry $registry
private ShadowStore $shadowStore
private MySqlTransformer $transformer
private ViewDefinitionSet $views

Test cases 4§

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 2

Relations§

Instantiated in 1
Method calls 1