classOfComposite
final class OfComposite
implements AlterCommand
uses Snapshot
Public API: explicitly declared with
@visibility public.OF type_name: makes the table a typed table of a composite type.
Mirrors AT_AddOf. Source: https://www.postgresql.org/docs/17/sql-altertable.html.
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TABLE t OF person');
$statement->statement->commands[0]->type->last()->value // => 'person'Properties§
public DottedName $typeMethods§
public function __construct(public DottedName $type)Parameters
$type | DottedName | The composite type |
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: the type is a catalog name.
Parameters
$derivation | Derivation | |
$environment | Environment |
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
OfCompositeTestcalls