final class SourceSettings
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

Derives the options of CHANGE REPLICATION SOURCE and the log positions of UNTIL, and the checks the server applies to their values.

Rule: MYSQL-REPLICATION-SOURCE-001. An option needs a release that has it (MYSQL-REPLICATION-RELEASE-001). The heartbeat period is a number literal and receives its scalar fact. The server's parser refuses: a line feed in a value read by TEXT_STRING_sys_nonewline (every string option except SOURCE_COMPRESSION_ALGORITHMS, ER_WRONG_VALUE); a password of more than 32 bytes (5.7 and later); a delay greater than 2147483647 (MASTER_DELAY_MAX); a heartbeat period greater than 4294967 seconds (REPLICA_MAX_HEARTBEAT_PERIOD, compared as the server does after converting to a floating number); REQUIRE_ROW_FORMAT, SOURCE_CONNECTION_AUTO_FAILOVER and GTID_ONLY other than 0 or 1, and a fraction in the last two; an anonymous GTID UUID whose first 36 characters are not a UUID in its text form. Each is a RefusedSetting diagnostic. Terminates: one pass over the options. Source: sql/sql_yacc.yy (source_def, master_def, TEXT_STRING_sys_nonewline, assign_gtids_to_anonymous_transactions_def), https://dev.mysql.com/doc/refman/8.4/en/change-replication-source-to.html. Status: Implemented.

Methods§

public function lineFeed(Derivation $derivation, ?Text $value): void

Reports a line feed in a string the server reads with TEXT_STRING_sys_nonewline.

Parameters

$derivationDerivation
$value?Text
Called from 7
Calls 4

Private surface 3§

Implementation details, listed for orientation only.

private const PASSWORD = 32
private const DELAY = 2147483647
private const HEARTBEAT = 4294967

Test cases 3§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 3

Relations§

Instantiated in 7
Method calls 9