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.

Rotating the binary log master keydoctest
$rotate = new \SqlSemantics\Platform\MySql\Statement\Server\Instance\RotateMasterKey(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('binlog'));
    $rotate->binaryLog() // => true

Properties§

public Name $keyring

Methods§

public function __construct(public Name $keyring)

Parameters

$keyringNameThe name INNODB or BINLOG, in any letter case

Throws

InvalidConstruction When the name is neither
Calls 3
public function binaryLog(): bool

Tells whether the binary log master key is rotated rather than the InnoDB one.

Returns

bool
Test cases 1
Calls 1
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