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.

Resetting the replica and the binary logsdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('reset replica, binary logs and gtids')->toString() // => 'RESET REPLICA, BINARY LOGS AND GTIDS'

Properties§

public list<ResetTarget> $targets

Methods§

public function __construct(list<ResetTarget> $targets)

Parameters

$targetslist<ResetTarget>The items in written order; at least one
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives every item.

Parameters

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

Writes the request.

Parameters

$outOutput
Calls 1

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 1
Type checks 1