classParametersTarget
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.
$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> $parametersMethods§
public function __construct(list<ParameterName> $parameters)Parameters
$parameters | list<ParameterName> | The parameters in the order written, at least one |
Calls 2
- static-call Check::listOf() line 36
- class-const ParameterName::class() line 36
public function object(): PrivilegeObjectKindAnswers the kind of the objects: parameters.
Returns
Test cases 1
Calls 1
- class-const PrivilegeObjectKind::Parameter() line 44
public function deriveTarget(Derivation $derivation, array $privileges): voidDerives nothing: a parameter name is not resolved.
Parameters
$derivation | Derivation | |
$privileges | array |
public function render(Output $out): voidTest cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.