classColumnForeignOptions
final class ColumnForeignOptions
implements AlterCommand
uses Snapshot
Public API: explicitly declared with
@visibility public.ALTER [ COLUMN ] ... OPTIONS ( ... ): changes the options of a column of a foreign table.
Mirrors AT_AlterColumnGenericOptions. Source: https://www.postgresql.org/docs/17/sql-altertable.html.
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("ALTER FOREIGN TABLE f ALTER a OPTIONS (ADD x 'y')");
$statement->toString() // => "ALTER FOREIGN TABLE f ALTER a OPTIONS (ADD x 'y')"Properties§
public non-empty-list<AlteredOption> $optionspublic Name $columnMethods§
public function __construct(public Name $column, list<AlteredOption> $options)Parameters
$column | Name | The column |
$options | list<AlteredOption> | The changes |
Calls 2
- static-call Check::listOf() line 43
- class-const AlteredOption::class() line 43
public function deriveClause(Derivation $derivation, Environment $environment): voidChecks that the column exists.
Parameters
$derivation | Derivation | |
$environment | Environment |
Calls 2
- method-call Alterations::column() line 51
- new Alterations line 51
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
ColumnForeignOptionsTestcalls