final class ConfigurationSetting
    implements RoutineOption
    uses Snapshot
Public API: explicitly declared with @visibility public.

SET parameter ... or RESET parameter: a configuration parameter set while the routine runs.

The clause is the SET or RESET command the utility family models (any statement is accepted as the clause by the constructor); the routine applies it on entry and restores the parameter on exit. It may be written several times. Source: https://www.postgresql.org/docs/17/sql-createfunction.html, https://www.postgresql.org/docs/17/sql-alterfunction.html.

Telling that a configuration setting may be repeateddoctest
$clause = new \SqlSemantics\Platform\PostgreSql\Statement\Object\Drop(\SqlSemantics\Platform\PostgreSql\Statement\Name\ObjectKind::Schema, [new \SqlSemantics\Platform\PostgreSql\Statement\Object\Reference\UnqualifiedName(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('s'))]);
    (new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Option\ConfigurationSetting($clause))->setting() // => null

Properties§

public Statement $clause

Methods§

public function __construct(public Statement $clause)

Parameters

$clauseStatementThe SET or RESET clause
public function alterable(): bool

Tells that ALTER accepts the option.

Returns

bool
Test cases 1
public function setting(): ?string

Answers null: settings of several parameters may be written.

Returns

?string
Test cases 1
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the clause on its own: it changes no declaration and returns no rows.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
Calls 1
public function render(Output $out): void

Writes the clause.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 4§

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

Dedicated tests 4

Relations§

Instantiated in 1