final class AccessProblem
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

A role or privilege command that PostgreSQL rejects because it breaks a rule of the command.

Reading the problem of a privilege that does not apply to the objectdoctest
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('GRANT EXECUTE ON SCHEMA s TO joe') // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\SemanticException: invalid privilege type EXECUTE for schema

Properties§

public list<string> $subjects

Methods§

public function __construct(public AccessProblemRule $rule, list<string> $subjects = [])

Parameters

$ruleAccessProblemRuleThe broken rule
$subjectslist<string>The texts the message names, one for each `%s` of the rule
Calls 3
public function message(): string

Describes the broken rule in the words of PostgreSQL.

Returns

string
Test cases 1
Calls 1

Test cases 2§

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

Dedicated tests 2

Relations§

Instantiated in 19
Type declarations 1