final class Reset
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

RESET parameter, RESET ALL or a keyword form: a request to restore the default of a configuration parameter.

Rule: PG-RESET-001. Mirrors PostgreSQL's VariableSetStmt of kind VAR_RESET or VAR_RESET_ALL. The same structure is the RESET clause of a routine, a role, a database and ALTER SYSTEM. Facts: none. Source: https://www.postgresql.org/docs/17/sql-reset.html. Status: Implemented.

Reading a RESET of a keyword formdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('RESET TIME ZONE');
    [$operation->statement->parameter->parameter(), $operation->toString()] // => ['timezone', 'RESET TIME ZONE']

Properties§

Methods§

public function __construct(public ParameterName|SpecialParameter $parameter)

Parameters

$parameterParameterName|SpecialParameterThe parameter, or the keywords that name one or all
public function deriveStatement(Derivation $derivation): void

Derives nothing: a configuration parameter is not part of a declaration context.

Parameters

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

Writes the request.

Parameters

$outOutput
Calls 3

Test cases 3§

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

Dedicated tests 1
Other tests reaching this symbol 2

Relations§

Instantiated in 2
Type checks 2
Type declarations 2