classReplicaUntil
final class ReplicaUntil
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.The UNTIL clause of START REPLICA: an optional GTID or gap condition first, then log positions, in written order.
The grammar admits a GTID or gap condition only as the first item, so the two parts keep the written order exactly. Which combinations the server accepts is checked when the statement is derived (MYSQL-REPLICA-UNTIL-001). Source: https://dev.mysql.com/doc/refman/8.4/en/start-replica.html.
$until = new \SqlSemantics\Platform\MySql\Statement\Replication\Replica\ReplicaUntil(\SqlSemantics\Platform\MySql\Statement\Replication\Replica\UntilPoint::AfterGtids, new \SqlSemantics\Platform\MySql\Statement\Literal\Text('3E11FA47-71CA-11E1-9E33-C80AA9429562:1-5'));
$until->positions // => []Properties§
public list<SourceOption> $positionspublic UntilPoint|null $pointpublic Text|null $gtids = nullMethods§
public function __construct(
public UntilPoint|null $point,
public Text|null $gtids = null,
list<SourceOption> $positions = [],
)Parameters
$point | UntilPoint|null | The GTID or gap condition written first, if any |
$gtids | Text|null | The GTID set of a GTID condition |
$positions | list<SourceOption> | The log file and position options in written order |
Calls 5
- static-call Check::listOf() line 43
- class-const SourceOption::class() line 43
- static-call Check::input() line 44
- class-const UntilPoint::BeforeGtids() line 44
- class-const UntilPoint::AfterGtids() line 44
public function render(Output $out): voidWrites UNTIL and the conditions.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 56
- method-call Output::symbol() line 60
- method-call Output::list() line 66
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 1
Relations§
Instantiated in 2
Type declarations 4
- type SqlSemantics\Platform\MySql\Lowering\Replication\UntilRule packages/sql-semantics-mysql/src/Lowering/Replication/UntilRule.php:61
- type SqlSemantics\Platform\MySql\Lowering\Replication\UntilRule packages/sql-semantics-mysql/src/Lowering/Replication/UntilRule.php:77
- type SqlSemantics\Platform\MySql\Rules\Replication\ReplicaConditions packages/sql-semantics-mysql/src/Rules/Replication/ReplicaConditions.php:36
- type SqlSemantics\Platform\MySql\Statement\Replication\Replica\StartReplica packages/sql-semantics-mysql/src/Statement/Replication/Replica/StartReplica.php:63