classResetPersist
final class ResetPersist
implements Statement
uses Snapshot
@visibility public.RESET PERSIST [[IF EXISTS] [component.]variable]: removes persisted global system variable settings (MySQL 8.0 and later).
Mirrors SQLCOM_RESET with REFRESH_PERSIST: without a variable every persisted setting is removed. A component variable is written component.variable; the server joins the two names with a dot, and DEFAULT.variable names the component default. IF EXISTS turns the error for a variable that is not persisted into a warning. Rule: MYSQL-RESET-PERSIST-001. The statement has no facts of its own. Source: https://dev.mysql.com/doc/refman/8.4/en/reset-persist.html. Status: Implemented.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('reset persist if exists max_connections')->toString() // => 'RESET PERSIST IF EXISTS max_connections'Properties§
public bool $ifExists = falsepublic Name|null $variable = nullpublic Name|null $component = nullMethods§
public function __construct(
public bool $ifExists = false,
public Name|null $variable = null,
public Name|null $component = null,
)Parameters
Calls 1
- static-call Check::input() line 43
public function deriveStatement(Derivation $derivation): voidChecks that the release has persisted variables.
Parameters
$derivation | Derivation |
Calls 3
- static-call Check::input() line 51
- method-call Releases::legacy() line 51
- new Releases line 51
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 4
- method-call Output::keyword() line 59
- method-call Output::name() line 64
- class-const NameUse::Qualifier() line 64
- class-const NameUse::Identifier() line 67
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Relations§
Instantiated in 4
- new SqlSemantics\Platform\MySql\Lowering\Replication\ResetRule::persist() packages/sql-semantics-mysql/src/Lowering/Replication/ResetRule.php:150
- new SqlSemantics\Platform\MySql\Lowering\Replication\ResetRule::persist() packages/sql-semantics-mysql/src/Lowering/Replication/ResetRule.php:160
- new SqlSemantics\Platform\MySql\Lowering\Replication\ResetRule::persist() packages/sql-semantics-mysql/src/Lowering/Replication/ResetRule.php:161
- new SqlSemantics\Platform\MySql\Lowering\Replication\ResetRule::persist() packages/sql-semantics-mysql/src/Lowering/Replication/ResetRule.php:162