final class LogRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql\Lowering\Replication". Code outside that scope must not name this declaration.

Lowers PURGE BINARY LOGS, BINLOG and START and STOP GROUP_REPLICATION.

Rule: MYSQL-REPLICATION-LOG-001. Scope: purge, purge_options, purge_option, binlog_base64_event, group_replication, group_replication_start, opt_group_replication_start_options, group_replication_start_options, group_replication_start_option, group_replication_user, group_replication_password, group_replication_plugin_auth. The word MASTER or BINARY before LOGS is confirmed by the utility family, which owns master_or_binary; the two are synonyms. Constructs: PurgeLogsTo, PurgeLogsBefore, BinlogEvent, StartGroupReplication, StopGroupReplication, CredentialOption. Terminates: the option list is flattened iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/purge-binary-logs.html, https://dev.mysql.com/doc/refman/8.4/en/binlog.html, https://dev.mysql.com/doc/refman/8.4/en/start-group-replication.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function option(Node $option): CredentialOption

Private surface 3§

Implementation details, listed for orientation only.

private const CREDENTIALS = ['group_replication_user: USER EQ TEXT_STRING_sys_nonewline' => \SqlSemantics\P…
private const FORWARD = ['group_replication_start_option: group_replication_user' => true, 'group_repli…
private Lowering $lowering

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 3
Method calls 3