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

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 $lowering

Methods§

public function __construct(public Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function statement(Node $statement): Statement

Lowers a replication statement: a node of one of the statement rules this family owns.

Parameters

$statementNode

Returns

Throws

ImplementationGap When a production has no rule
Test cases 1
Called from 1
Calls 12
public function channel(Node $channel): ?Text

Lowers a FOR CHANNEL clause: a node of opt_channel; an absent clause is null.

Parameters

$channelNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2
public function terminology(Node $replica): Terminology

Answers the vocabulary of the keyword SLAVE or REPLICA as written: a node of replica.

Parameters

$replicaNode

Throws

ImplementationGap When the production has no rule
Calls 4

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
Method calls 1
Type declarations 1