classReset
final class Reset
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.RESET item, …: resets the replica, the binary logs or (5.x) the query cache.
Mirrors SQLCOM_RESET with its REFRESH_* flags; the items are kept in written order, an item possibly written twice. Rule: MYSQL-RESET-001. Each item checks the release and reports refused values (ResetTarget). The statement uses no table and provides no declaration. Source: https://dev.mysql.com/doc/refman/8.4/en/reset.html. Status: Implemented.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('reset replica, binary logs and gtids')->toString() // => 'RESET REPLICA, BINARY LOGS AND GTIDS'Properties§
public list<ResetTarget> $targetsMethods§
public function __construct(list<ResetTarget> $targets)Parameters
$targets | list<ResetTarget> | The items in written order; at least one |
Calls 2
- static-call Check::listOf() line 41
- class-const ResetTarget::class() line 41
public function deriveStatement(Derivation $derivation): voidDerives every item.
Parameters
$derivation | Derivation |
public function render(Output $out): voidTest cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ResetTestcalls