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

SHOW REPLICAS (SHOW SLAVE HOSTS): the replicas registered with the source.

Rule: MYSQL-SHOW-REPLICAS-001. The two spellings are kept: they name the columns differently (Master_id, Slave_UUID against Source_Id, Replica_UUID), and each release accepts only some of them (SHOW SLAVE HOSTS up to 8.3, SHOW REPLICAS from 8.0). The columns are those of the layout of MYSQL-SHOW-ROWS-001 for the spelling. Terminates: a fixed layout. Source: https://dev.mysql.com/doc/refman/8.4/en/show-replicas.html. Status: Implemented.

Reading the statementdoctest
$show = (new \SqlSemantics\Platform\MySql\Semantics('mysql-8.0.44'))->analyze('SHOW SLAVE HOSTS');
    [$show->field(4)->name?->value, $show->toString()] // => ['Slave_UUID', 'SHOW SLAVE HOSTS']

Properties§

public Terminology $terminology

Methods§

public function __construct(public Terminology $terminology)

Parameters

$terminologyTerminologyWhether SLAVE HOSTS or REPLICAS is written
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