final class ShowReplicaStatus
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

SHOW REPLICA STATUS (SHOW SLAVE STATUS): the state of the replication threads.

Rule: MYSQL-SHOW-REPLICA-STATUS-001. The two spellings are kept: they name the columns differently (Slave_IO_State, Master_Host against Replica_IO_State, Source_Host), and each release accepts only some of them. FOR CHANNEL (5.7 and later) selects a channel. The columns are those of the layout of MYSQL-SHOW-ROWS-001 for the spelling and release. Terminates: a fixed layout. Source: https://dev.mysql.com/doc/refman/8.4/en/show-replica-status.html. Status: Implemented.

Reading the statementdoctest
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("SHOW REPLICA STATUS FOR CHANNEL 'c'");
    [$show->field(0)->name?->value, $show->toString()] // => ['Replica_IO_State', "SHOW REPLICA STATUS FOR CHANNEL 'c'"]

Properties§

public Terminology $terminology
public ?Text $channel = null

Methods§

public function __construct(public Terminology $terminology, public ?Text $channel = null)

Parameters

$terminologyTerminologyWhether SLAVE or REPLICA is written
$channel?TextThe channel after FOR CHANNEL
public function deriveStatement(Derivation $derivation): void

Derives the rows.

Parameters

$derivationDerivation
Calls 5
public function render(Output $out): void

Writes the statement.

Parameters

$outOutput
Calls 3

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 3