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

Lowers GRANT and REVOKE of role membership.

Rule: PG-MEMBERSHIP-LOWER-001. Scope: GrantRoleStmt, RevokeRoleStmt, grant_role_opt_list, grant_role_opt, grant_role_opt_value. Constructors: GrantRole, RevokeRole, MembershipOption. The granted roles are a privilege_list (PG-PRIVILEGE-LOWER-001). Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-grant.html#SQL-GRANT-DESCRIPTION-ROLES, https://www.postgresql.org/docs/17/sql-revoke.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function options(Node $list): list<MembershipOption>

Private surface 2§

Implementation details, listed for orientation only.

private const SETTINGS = ['grant_role_opt_value: OPTION' => \SqlSemantics\Platform\PostgreSql\Statement\…
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