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

Lowers the value of an option of CHANGE REPLICATION SOURCE TO.

Rule: MYSQL-SOURCE-VALUE-001. Scope: ignore_server_id_list, ignore_server_id, privilege_check_def, table_primary_key_check_def, assign_gtids_to_anonymous_transactions_def, source_tls_ciphersuites_def, and the string and number leaves at the value position of an option. A string is a Text, a number a Numeral, the heartbeat period a NumberLiteral, NULL the value null, the keyword settings their enum cases; the UUID of ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS is a plain string token decoded under the escape setting of the profile. The server identifier list may start with an empty element, ( , 2), which adds no identifier. Terminates: the server identifier list is flattened iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/change-replication-source-to.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function serverIds(Node $list): ServerIds

Lowers the server identifiers of IGNORE_SERVER_IDS; an empty list clears the setting, an empty element adds nothing.

Parameters

$listNode

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 5
public function privilegeChecks(Node $value): ?AccountName

Lowers the account of PRIVILEGE_CHECKS_USER; NULL is null.

Parameters

$valueNode

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 2
public function primaryKeyCheck(Node $value): PrimaryKeyCheck
public function anonymousGtids(Node $value): AnonymousGtids|Text

Lowers the setting of ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS: OFF, LOCAL or a UUID string.

Parameters

$valueNode

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 5
public function cipherSuites(Node $value): ?Text

Lowers the setting of SOURCE_TLS_CIPHERSUITES: a string, or NULL as null.

Parameters

$valueNode

Returns

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 2

Private surface 2§

Implementation details, listed for orientation only.

private const PRIMARY_KEY_CHECKS = ['table_primary_key_check_def: STREAM_SYM' => \SqlSemantics\Platform\MySql\Stat…
private Lowering $lowering

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 1
Method calls 1