final class ParametersTarget
    implements PrivilegeTarget
    uses Snapshot
Public API: explicitly declared with @visibility public.

Configuration parameters named as the objects of a GRANT or REVOKE.

Source: https://www.postgresql.org/docs/17/sql-grant.html.

Reading the parameter of a grantdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('GRANT SET ON PARAMETER work_mem TO joe');
    $operation->statement->target->parameters[0]->parameter() // => 'work_mem'

Properties§

public non-empty-list<ParameterName> $parameters

Methods§

public function __construct(list<ParameterName> $parameters)

Parameters

$parameterslist<ParameterName>The parameters in the order written, at least one
Calls 2
public function object(): PrivilegeObjectKind

Answers the kind of the objects: parameters.

Test cases 1
Calls 1
public function deriveTarget(Derivation $derivation, array $privileges): void

Derives nothing: a parameter name is not resolved.

Parameters

$derivationDerivation
$privilegesarray
public function render(Output $out): void

Writes the kind and the names.

Parameters

$outOutput
Calls 1

Test cases 3§

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

Dedicated tests 2
Other tests reaching this symbol 1

Relations§

Instantiated in 1