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

Resolve MySQL CREATE, DROP, ALTER, and TRUNCATE into table mutations.

Methods§

public function __construct(
    private TableDefinitionRegistry $registry,
    private SchemaParser $schemaParser,
)

Configure the dependencies used by this operation.

Parameters

public function resolveAlterTable(AlterStatement $statement, string $sql): ShadowMutation
public function extractSelectColumnNames(SelectStatement $selectStatement): list<string>

Extract column names from a SELECT statement for CREATE TABLE AS SELECT.

Parameters

$selectStatementSelectStatement

Returns

list<string>
Test cases 1
Called from 1
Calls 3
public function resolveTruncate(TruncateStatement $statement, string $sql): ShadowMutation

Private surface 2§

Implementation details, listed for orientation only.

private TableDefinitionRegistry $registry
private SchemaParser $schemaParser

Test cases 9§

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

Dedicated tests 5
Other tests reaching this symbol 4

Relations§

Instantiated in 4
Method calls 4