final class DefaultPrivilegeRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql\Lowering". Code outside that scope must not name this declaration.

Lowers ALTER DEFAULT PRIVILEGES, DROP OWNED and REASSIGN OWNED.

Rule: PG-DEFAULT-PRIVILEGES-LOWER-001. Scope: AlterDefaultPrivilegesStmt, DefACLOptionList, DefACLOption, DefACLAction, defacl_privilege_target, DropOwnedStmt, ReassignOwnedStmt. Constructors: AlterDefaultPrivileges, InSchemas, ForRoles, DefaultGrant, DefaultRevoke, DropOwned, ReassignOwned; the privileges and grantees are lowered by PG-PRIVILEGE-LOWER-001. Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-alterdefaultprivileges.html, https://www.postgresql.org/docs/17/sql-drop-owned.html, https://www.postgresql.org/docs/17/sql-reassign-owned.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function scopes(Node $list): list<DefaultScope>

Private surface 2§

Implementation details, listed for orientation only.

private const OBJECTS = ['defacl_privilege_target: TABLES' => \SqlSemantics\Platform\PostgreSql\Stateme…
private Lowering $lowering

Test cases 6§

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

Dedicated tests 6

Relations§

Instantiated in 1
Method calls 1