classUntilRule
final class UntilRule
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
$lowering | Lowering | The lowering this rule belongs to |
public function until(Node $clause, Terminology $terminology): ?ReplicaUntilLowers an optional UNTIL clause; an absent clause is null.
Parameters
$clause | Node | |
$terminology | Terminology |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 3
- method-call Lowering::form() line 63
- method-call UntilRule::conditions() line 67
- static-call ImplementationGap::production() line 68
public function conditions(Node $list, Terminology $terminology): ReplicaUntilLowers the condition list.
Parameters
$list | Node | |
$terminology | Terminology |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 10
- new SourceOptionRule line 79
- method-call Lowering::form() line 81
- class-const UntilRule::CONTINUED() line 82
- function-call
array_unshiftline 83 - method-call SourceOptionRule::option() line 83
- class-const UntilRule::POSITIONS() line 86
- new ReplicaUntil line 87
- class-const UntilRule::POINTS() line 89
- static-call ImplementationGap::production() line 89
- class-const UntilPoint::AfterGaps() line 91
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 $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
UntilRuleTestcalls