classLogRule
final class LogRule
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
$lowering | Lowering | The lowering this rule belongs to |
Lowers PURGE.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 5
- static-call ImplementationGap::production() line 73
- method-call Lowering::form() line 75
- method-call Form::node() line 75
- new PurgeLogsTo line 84
- new PurgeLogsBefore line 85
public function binlog(Form $form): BinlogEventLowers BINLOG.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 3
- static-call ImplementationGap::production() line 98
- new BinlogEvent line 101
- method-call Form::node() line 101
Lowers START or STOP GROUP_REPLICATION.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 4
- new StartGroupReplication line 112
- new StopGroupReplication line 113
- method-call LogRule::start() line 114
- static-call ImplementationGap::production() line 115
public function start(Form $form): StartGroupReplicationLowers START GROUP_REPLICATION with its options.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 7
- method-call Lowering::form() line 126
- method-call Form::node() line 126
- static-call ImplementationGap::production() line 128
- new StartGroupReplication line 132
- method-call Spine::items() line 139
- new Spine line 139
- method-call LogRule::option() line 140
public function option(Node $option): CredentialOptionLowers one option of START GROUP_REPLICATION.
Parameters
$option | Node |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 5
- method-call Lowering::form() line 153
- class-const LogRule::FORWARD() line 154
- class-const LogRule::CREDENTIALS() line 157
- static-call ImplementationGap::production() line 157
- new CredentialOption line 159
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 $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
LogRuleTestcalls
Relations§
Instantiated in 3
- new SqlSemantics\Platform\MySql\Lowering\Replication\ReplicationRules::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ReplicationRules.php:53
- new SqlSemantics\Platform\MySql\Lowering\Replication\ReplicationRules::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ReplicationRules.php:54
- new SqlSemantics\Platform\MySql\Lowering\Replication\ReplicationRules::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ReplicationRules.php:55
Method calls 3
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\ReplicationRules::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ReplicationRules.php:53
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\ReplicationRules::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ReplicationRules.php:54
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\ReplicationRules::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ReplicationRules.php:55