classSourceValueRule
final class SourceValueRule
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
$lowering | Lowering | The lowering this rule belongs to |
public function value(Form $option): Text|Numeral|NumberLiteral|ServerIds|AccountName|PrimaryKeyCheck|AnonymousGtids|nullLowers the value of an option production: the child after =.
Parameters
$option | Form |
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 7
- method-call SourceValueRule::serverIds() line 63
- method-call Form::node() line 63
- method-call SourceValueRule::privilegeChecks() line 70
- method-call SourceValueRule::primaryKeyCheck() line 71
- method-call SourceValueRule::anonymousGtids() line 72
- method-call SourceValueRule::cipherSuites() line 73
- static-call ImplementationGap::production() line 74
Lowers the server identifiers of IGNORE_SERVER_IDS; an empty list clears the setting, an empty element adds nothing.
Parameters
$list | Node |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 5
- method-call Spine::items() line 87
- new Spine line 87
- method-call Lowering::form() line 88
- static-call ImplementationGap::production() line 90
- new ServerIds line 95
public function privilegeChecks(Node $value): ?AccountNameLowers the account of PRIVILEGE_CHECKS_USER; NULL is null.
Parameters
$value | Node |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 2
- method-call Lowering::form() line 105
- static-call ImplementationGap::production() line 110
public function primaryKeyCheck(Node $value): PrimaryKeyCheckLowers the setting of REQUIRE_TABLE_PRIMARY_KEY_CHECK.
Parameters
$value | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 3
- method-call Lowering::form() line 127
- class-const SourceValueRule::PRIMARY_KEY_CHECKS() line 129
- static-call ImplementationGap::production() line 129
public function anonymousGtids(Node $value): AnonymousGtids|TextLowers the setting of ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS: OFF, LOCAL or a UUID string.
Parameters
$value | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 5
- method-call Lowering::form() line 139
- class-const AnonymousGtids::Off() line 143
- class-const AnonymousGtids::Local() line 144
- new Text line 145
- static-call ImplementationGap::production() line 146
Lowers the setting of SOURCE_TLS_CIPHERSUITES: a string, or NULL as null.
Parameters
$value | Node |
Returns
?TextThrows
ImplementationGap When the production has no ruleCalled from 1
Calls 2
- method-call Lowering::form() line 157
- static-call ImplementationGap::production() line 162
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 $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
SourceValueRuleTestcalls