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

Resolves a relation named by GRANT or REVOKE and checks the column privileges on it.

Rule: PG-GRANT-RELATION-001. The name is resolved along the schema search path (CORE-TABLE-LOOKUP-001); a grant sees no common table. A declared relation contributes one slot per declared column and is open when its column list is incomplete; an undeclared or conditionally resolved name contributes an open shape naming the missing declaration; conflicting declarations are a diagnostic. GRANT ... ON TABLE also accepts a sequence, and a context declares no sequences, so a name that no declared relation has is not certainly wrong: it is recorded as an undeclared relation, never as a missing table. A column of a column privilege that a declared, complete relation certainly lacks is reported. Termination: one lookup, then one pass over finite lists. Source: https://www.postgresql.org/docs/17/sql-grant.html, https://www.postgresql.org/docs/17/ddl-priv.html, https://www.postgresql.org/docs/release/8.2.0/ (sequences in GRANT ON TABLE). Status: Implemented.

Methods§

public function derive(
    Derivation $derivation,
    RelationReference $relation,
    list<Privilege> $privileges,
): RelationFact
public function columns(
    Derivation $derivation,
    RelationReference $relation,
    DeclaredTable $resolution,
    list<Privilege> $privileges,
): void

Reports the columns of column privileges that a declared, complete relation lacks.

Parameters

$derivationDerivation
$relationRelationReference
$resolutionDeclaredTable
$privilegeslist<Privilege>
Called from 1
Calls 2

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Method calls 1