classColumnStorageChange
final class ColumnStorageChange
implements AlterCommand
uses Snapshot
Public API: explicitly declared with
@visibility public.ALTER [ COLUMN ] ... SET STORAGE or SET COMPRESSION.
Mirrors AT_SetStorage and AT_SetCompression. Source: https://www.postgresql.org/docs/17/sql-altertable.html.
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TABLE t ALTER a SET STORAGE external');
$statement->statement->commands[0]->setting->method->value // => 'external'Properties§
public Name $columnpublic ColumnStorage|ColumnCompression $settingMethods§
public function __construct(
public Name $column,
public ColumnStorage|ColumnCompression $setting,
)Parameters
$column | Name | The column |
$setting | ColumnStorage|ColumnCompression | The new storage or compression |
public function deriveClause(Derivation $derivation, Environment $environment): voidChecks that the column exists.
Parameters
$derivation | Derivation | |
$environment | Environment |
Calls 2
- method-call Alterations::column() line 45
- new Alterations line 45
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ColumnStorageChangeTestcalls
Relations§
Instantiated in 2
- new SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule::column() packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:152
- new SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule::column() packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:153