final class AlterTableMutation
    implements ShadowMutation

Applies an ALTER TABLE schema and row projection to the shadow store.

Methods§

public function __construct(
    private string $sql,
    private string $sourceTable,
    private string $targetTable,
    private TableDefinition $definition,
    private TableDefinitionRegistry $registry,
    private string $resultSelect,
)

Binds the dependencies used by this operation.

Parameters

$sqlstring
$sourceTablestring
$targetTablestring
$definitionTableDefinition
$registryTableDefinitionRegistry
$resultSelectstring
public function resultSelect(): string
public function tableName(): string

Returns the relation affected by this mutation.

Returns

string
Test cases 1

Private surface 6§

Implementation details, listed for orientation only.

private string $sql
private string $sourceTable
private string $targetTable
private TableDefinition $definition
private TableDefinitionRegistry $registry
private string $resultSelect

Test cases 90§

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

Dedicated tests 4
Other tests reaching this symbol 86

Relations§

Instantiated in 1
Type checks 1
Type declarations 1