classAddColumnResolver
final class AddColumnResolver
Restricted visibility: declared "@visibility ZtdQuery\Platform\Sqlite". Code outside that scope must not name this declaration.
Builds a schema and row projection for adding a column.
Methods§
public function __construct(
private TableDefinitionRegistry $registry,
private SchemaParser $schemaParser,
)Binds the collaborators used by this operation.
Parameters
$registry | TableDefinitionRegistry | |
$schemaParser | SchemaParser |
public function resolveAlterAddColumn(
string $sql,
string $tableName,
string $columnSql,
): ShadowMutationBuilds a schema and row projection for adding a column.
Parameters
$sql | string | |
$tableName | string | |
$columnSql | string |
Returns
Test cases 3
Called from 1
Calls 13
- method-call MutationTableLookup::definition() line 37
- new MutationTableLookup line 37
- method-call SchemaParser::parse() line 38
- new UnsupportedSqlException line 40
- function-call
countline 42 - method-call AlteredTableProjection::existingColumn() line 47
- new AlteredTableProjection line 47
- new ColumnAlreadyExistsException line 48
- new TableDefinition line 59
- function-call
array_mergeline 61 - method-call AlteredTableProjection::quotedColumns() line 71
- method-call AlteredTableProjection::quote() line 73
- method-call AlteredTableProjection::alterMutation() line 75
Private surface 2§
Implementation details, listed for orientation only.
private TableDefinitionRegistry $registryprivate SchemaParser $schemaParserTest cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 5
SqliteRewriterTestcallsStatementRewriterTestcallsTableMutationResolverTestcallsSqliteMutationResolverTestcallsSqliteSessionFactoryTestcalls