final class RenamedMember
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

The column, constraint or attribute ALTER ... RENAME renames: COLUMN a, CONSTRAINT c or ATTRIBUTE a.

Mirrors the subname of PostgreSQL's RenameStmt. The word COLUMN is optional and always written back. Source: https://www.postgresql.org/docs/17/sql-altertable.html.

Reading the renamed columndoctest
$member = new \SqlSemantics\Platform\PostgreSql\Statement\Object\RenamedMember(\SqlSemantics\Platform\PostgreSql\Statement\Object\RenamedPart::Column, new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('a'));
    [$member->part->value, $member->name->value] // => ['COLUMN', 'a']

Properties§

public RenamedPart $part
public Name $name

Methods§

public function __construct(public RenamedPart $part, public Name $name)

Parameters

$partRenamedPartWhat kind of part is renamed
$nameNameThe current name of the part
public function render(Output $out): void

Writes the keyword and the current name.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 3§

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

Dedicated tests 1
Other tests reaching this symbol 2

Relations§

Instantiated in 2
Type declarations 2