classRedoLogSwitch
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.
$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 $enablepublic Name $enginepublic Name $logMethods§
Parameters
Throws
InvalidConstruction When a name is not the one the server expectsCalls 2
- static-call Check::input() line 40
- function-call
strtoupperline 40
public function render(Output $out): voidWrites the action.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 49
- class-const NameUse::Identifier() line 49
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
RedoLogSwitchTestcalls