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

Lowers ALTER ... SET SCHEMA, OWNER TO and DEPENDS ON EXTENSION.

Rule: PG-ALTER-OBJECT-LOWER-001. Scope: AlterObjectSchemaStmt, AlterOwnerStmt, AlterObjectDependsStmt, opt_no. Constructors: SetSchema, ChangeOwner, ExtensionDependency; the object part is read by PG-OBJECT-LOWER-001. Source: https://www.postgresql.org/docs/17/sql-alterfunction.html, https://www.postgresql.org/docs/17/sql-altertable.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub

Private surface 4§

Implementation details, listed for orientation only.

private const SCHEMAS = ['AlterObjectSchemaStmt: ALTER AGGREGATE aggregate_with_argtypes SET SCHEMA nam…
private const OWNERS = ['AlterOwnerStmt: ALTER AGGREGATE aggregate_with_argtypes OWNER TO RoleSpec' =>…
private const DEPENDS = ['AlterObjectDependsStmt: ALTER FUNCTION function_with_argtypes opt_no DEPENDS …
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 3
Method calls 3