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

START GROUP_REPLICATION [USER = …, PASSWORD = …, DEFAULT_AUTH = …]: starts group replication (MySQL 5.7 and later).

Mirrors SQLCOM_START_GROUP_REPLICATION with LEX::replica_connection; the options are kept in written order, an option possibly written twice. The options need MySQL 8.0 or later. Rule: MYSQL-GROUP-REPLICATION-001. Facts: a line feed in a value, or a password longer than 32 bytes (ER_GROUP_REPLICATION_PASSWORD_LENGTH), is a RefusedSetting diagnostic. Source: https://dev.mysql.com/doc/refman/8.4/en/start-group-replication.html. Status: Implemented.

Starting with credentialsdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze("start group_replication user = 'u', password = 'p'")->toString() // => "START GROUP_REPLICATION USER = 'u', PASSWORD = 'p'"

Properties§

public list<CredentialOption> $options

Methods§

public function __construct(list<CredentialOption> $options = [])

Parameters

$optionslist<CredentialOption>The options in written order
Calls 2
public function deriveStatement(Derivation $derivation): void
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 1

Private surface 1§

Implementation details, listed for orientation only.

private const PASSWORD = 32

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
Type declarations 1