final class RedoLogSwitch
    implements InstanceAction
    uses Snapshot
Public API: explicitly declared with @visibility public.

{ENABLE | DISABLE} INNODB REDO_LOG: enable or disable InnoDB redo logging (MySQL 8.0.21 and later).

Mirrors ALTER_INSTANCE_ENABLE_INNODB_REDO and ALTER_INSTANCE_DISABLE_INNODB_REDO. The two names are written as identifiers; any other names are a syntax error of the server and cannot be constructed. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-instance.html.

Disabling redo loggingdoctest
$switch = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('ALTER INSTANCE DISABLE innodb redo_log')->statement->action;
    [$switch->enable, $switch->engine->value] // => [false, 'innodb']

Properties§

public bool $enable
public Name $engine
public Name $log

Methods§

public function __construct(public bool $enable, public Name $engine, public Name $log)

Parameters

$enableboolWhether ENABLE (true) or DISABLE (false) is written
$engineNameThe name INNODB, in any letter case
$logNameThe name REDO_LOG, in any letter case

Throws

InvalidConstruction When a name is not the one the server expects
Calls 2
public function render(Output $out): void

Writes the action.

Parameters

$outOutput
Calls 2

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1
Type declarations 1