final class AlterTableRule
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Lowers the statements built on AlterTableStmt and the partition actions.

Rule: PG-ALTER-TABLE-LOWER-001. Scope: AlterTableStmt, alter_table_cmds, partition_cmd, index_partition_cmd. The actions themselves are lowered by AlterCommandRule. A relation written as relation_expr keeps ONLY; a qualified_name never has it. Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-altertable.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function commands(Node $list): list<AlterCommand>

Private surface 3§

Implementation details, listed for orientation only.

private const ALTER = ['AlterTableStmt: ALTER TABLE relation_expr alter_table_cmds' => [\SqlSemantics…
private const MOVE = ['AlterTableStmt: ALTER TABLE ALL IN_P TABLESPACE name SET TABLESPACE name opt_…
private Lowering $lowering

Test cases 3§

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

Dedicated tests 3

Relations§

Instantiated in 1
Method calls 1