classConfigurationSetting
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.
$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() // => nullProperties§
public Statement $clauseMethods§
public function __construct(public Statement $clause)Parameters
$clause | Statement | The SET or RESET clause |
public function alterable(): boolTells that ALTER accepts the option.
Returns
boolTest cases 1
public function setting(): ?stringAnswers null: settings of several parameters may be written.
Returns
?stringTest cases 1
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the clause on its own: it changes no declaration and returns no rows.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
Calls 1
- method-call Derivation::inspected() line 59
public function render(Output $out): voidTest cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.