classReplicationRules
final class ReplicationRules
The entry rules of the replication family: the methods other families and the statement dispatcher call.
Rule: MYSQL-REPLICATION-ENTRY-001. Scope: the statement rules change, change_replication_stmt, slave, start_replica_stmt, stop_replica_stmt, reset, purge, binlog_base64_event and group_replication, handed to the rule of their statement, and opt_channel and replica, which other families read too. A channel is the name string of FOR CHANNEL. The keyword SLAVE or REPLICA of the replica rule is answered as written: SHOW SLAVE STATUS and SHOW REPLICA STATUS name their result columns after it. Terminates: one dispatch per node. Source: https://dev.mysql.com/doc/refman/8.4/en/sql-replication-statements.html, https://dev.mysql.com/doc/refman/8.4/en/replication-channels.html. Status: Implemented.
Properties§
public Lowering $loweringMethods§
public function __construct(public Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers a replication statement: a node of one of the statement rules this family owns.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When a production has no ruleTest cases 1
Called from 1
Calls 12
- method-call Lowering::form() line 47
- method-call ChangeRule::statement() line 50
- new ChangeRule line 50
- method-call ReplicaRule::statement() line 51
- new ReplicaRule line 51
- method-call ResetRule::statement() line 52
- new ResetRule line 52
- method-call LogRule::purge() line 53
- new LogRule line 53
- method-call LogRule::binlog() line 54
- method-call LogRule::group() line 55
- static-call ImplementationGap::production() line 56
Lowers a FOR CHANNEL clause: a node of opt_channel; an absent clause is null.
Parameters
$channel | Node |
Returns
?TextThrows
ImplementationGap When the production has no ruleCalls 2
- method-call Lowering::form() line 67
- static-call ImplementationGap::production() line 72
public function terminology(Node $replica): TerminologyAnswers the vocabulary of the keyword SLAVE or REPLICA as written: a node of replica.
Parameters
$replica | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 4
- method-call Lowering::form() line 83
- class-const Terminology::Legacy() line 86
- class-const Terminology::Current() line 87
- static-call ImplementationGap::production() line 88
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.