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

Lowers the UNTIL clause of START SLAVE and START REPLICA.

Rule: MYSQL-REPLICA-UNTIL-002. Scope: slave_until, slave_until_opts (5.6, 5.7), opt_replica_until, replica_until (8.0 and later). The list is left-recursive: its first item is a log position, a GTID condition or SQL_AFTER_MTS_GAPS, every later item a log position, lowered by MYSQL-SOURCE-OPTION-001 in the vocabulary of the release. Constructs: ReplicaUntil. Terminates: the list spine is walked iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/start-replica.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function until(Node $clause, Terminology $terminology): ?ReplicaUntil

Lowers an optional UNTIL clause; an absent clause is null.

Parameters

$clauseNode
$terminologyTerminology

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 3
public function conditions(Node $list, Terminology $terminology): ReplicaUntil

Private surface 4§

Implementation details, listed for orientation only.

private const CONTINUED = ['slave_until_opts: slave_until_opts , master_file_def' => true, 'replica_until…
private const POSITIONS = ['slave_until_opts: master_file_def' => true, 'replica_until: source_file_def' …
private const POINTS = ['slave_until_opts: SQL_BEFORE_GTIDS EQ TEXT_STRING_sys' => \SqlSemantics\Platf…
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 1
Method calls 1