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

ALTER INSTANCE action: a request to change the running server instance (MySQL 5.7.11 and later).

Mirrors PT_alter_instance (Sql_cmd_alter_instance). Rule: MYSQL-ALTER-INSTANCE-001. The statement names no relation and has no facts. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-instance.html. Status: Implemented.

Rotating the InnoDB master keydoctest
$alter = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('alter instance rotate innodb master key');
    [$alter->toString(), $alter->statement->action->binaryLog()] // => ['ALTER INSTANCE ROTATE innodb MASTER KEY', false]

Properties§

public InstanceAction $action

Methods§

public function __construct(public InstanceAction $action)

Parameters

$actionInstanceActionThe action
public function deriveStatement(Derivation $derivation): void

Has nothing to derive: the request names no relation and no value.

Parameters

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

Writes the request.

Parameters

$outOutput
Calls 1

Test cases 2§

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 1

Relations§

Instantiated in 1