classRotateMasterKey
final class RotateMasterKey
implements InstanceAction
uses Snapshot
Public API: explicitly declared with
@visibility public.ROTATE {INNODB | BINLOG} MASTER KEY: rotate the master encryption key of InnoDB or of the binary log.
Mirrors ROTATE_INNODB_MASTER_KEY and ROTATE_BINLOG_MASTER_KEY (BINLOG from MySQL 8.0.14). The name is written as an identifier or a string; any other name is a syntax error of the server and cannot be constructed. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-instance.html.
$rotate = new \SqlSemantics\Platform\MySql\Statement\Server\Instance\RotateMasterKey(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('binlog'));
$rotate->binaryLog() // => trueProperties§
public Name $keyringMethods§
public function __construct(public Name $keyring)Parameters
$keyring | Name | The name INNODB or BINLOG, in any letter case |
Throws
InvalidConstruction When the name is neitherCalls 3
- static-call Check::input() line 37
- function-call
in_arrayline 37 - function-call
strtoupperline 37
public function binaryLog(): boolTells whether the binary log master key is rotated rather than the InnoDB one.
Returns
boolTest cases 1
Calls 1
- function-call
strtoupperline 45
public function render(Output $out): voidWrites the action.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 53
- class-const NameUse::Identifier() line 53
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.