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.

Holding a GTID conditiondoctest
$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> $positions
public UntilPoint|null $point
public Text|null $gtids = null

Methods§

public function __construct(
    public UntilPoint|null $point,
    public Text|null $gtids = null,
    list<SourceOption> $positions = [],
)

Parameters

$pointUntilPoint|nullThe GTID or gap condition written first, if any
$gtidsText|nullThe GTID set of a GTID condition
$positionslist<SourceOption>The log file and position options in written order
Calls 5
public function render(Output $out): void

Writes UNTIL and the conditions.

Parameters

$outOutput
Calls 3

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