classReset
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.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('RESET TIME ZONE');
[$operation->statement->parameter->parameter(), $operation->toString()] // => ['timezone', 'RESET TIME ZONE']Properties§
public ParameterName|SpecialParameter $parameterMethods§
public function __construct(public ParameterName|SpecialParameter $parameter)Parameters
$parameter | ParameterName|SpecialParameter | The parameter, or the keywords that name one or all |
public function deriveStatement(Derivation $derivation): voidDerives nothing: a configuration parameter is not part of a declaration context.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 48
- function-call
explodeline 50 - method-call Output::node() line 54
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ResetTestcalls
Other tests reaching this symbol 2
Relations§
Instantiated in 2
Type checks 2
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\AlterSystemSetting::__construct() packages/sql-semantics-postgres/src/Statement/Utility/Session/AlterSystemSetting.php:41
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\AlterSystemSetting::__construct() packages/sql-semantics-postgres/src/Statement/Utility/Session/AlterSystemSetting.php:43
Type declarations 2
- type SqlSemantics\Platform\PostgreSql\Lowering\Utility\SettingRule packages/sql-semantics-postgres/src/Lowering/Utility/SettingRule.php:245
- type SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\AlterSystemSetting packages/sql-semantics-postgres/src/Statement/Utility/Session/AlterSystemSetting.php:39