classAlterInstance
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.
$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 $actionMethods§
public function __construct(public InstanceAction $action)Parameters
$action | InstanceAction | The action |
public function deriveStatement(Derivation $derivation): voidHas nothing to derive: the request names no relation and no value.
Parameters
$derivation | Derivation |
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
AlterInstanceTestcalls