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

Lowers the parts GRANT, REVOKE and ALTER DEFAULT PRIVILEGES share: privileges, grantees, the grant option and the grantor.

Rule: PG-PRIVILEGE-LOWER-001. Scope: privileges, privilege_list, privilege, grantee_list, grantee, opt_grant_grant_option, opt_granted_by. Constructor: Privilege. ALL and ALL PRIVILEGES are an empty list, as in the server; with a column list they are one privilege without a name. PRIVILEGES after ALL and GROUP before a grantee are noise (AccessNoise). Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-grant.html, https://www.postgresql.org/docs/17/sql-revoke.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function privileges(Node $privileges): list<Privilege>

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 10§

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

Dedicated tests 10

Relations§

Instantiated in 3
Method calls 25