enum SourceOptionKind: string
Public API: explicitly declared with @visibility public.

The options of CHANGE REPLICATION SOURCE TO and CHANGE MASTER TO: the fields of the server's LEX_SOURCE_INFO.

Each case holds the keyword of the current vocabulary. An option whose name begins with SOURCE_ (or GET_SOURCE_) is written MASTER_ (or GET_MASTER_) in the legacy vocabulary; the other options have one name. The log file and position options also form the UNTIL condition of START REPLICA. Source: https://dev.mysql.com/doc/refman/8.4/en/change-replication-source-to.html, https://dev.mysql.com/doc/refman/5.7/en/change-master-to.html.

Spelling an option in both vocabulariesdoctest
[\SqlSemantics\Platform\MySql\Statement\Replication\Source\SourceOptionKind::Host->keyword(\SqlSemantics\Platform\MySql\Statement\Replication\Terminology::Legacy), \SqlSemantics\Platform\MySql\Statement\Replication\Source\SourceOptionKind::Host->value] // => ['MASTER_HOST', 'SOURCE_HOST']

Cases§

case Host = 'SOURCE_HOST'
case NetworkNamespace = 'NETWORK_NAMESPACE'
case Bind = 'SOURCE_BIND'
case User = 'SOURCE_USER'
case Password = 'SOURCE_PASSWORD'
case Port = 'SOURCE_PORT'
case ConnectRetry = 'SOURCE_CONNECT_RETRY'
case RetryCount = 'SOURCE_RETRY_COUNT'
case Delay = 'SOURCE_DELAY'
case Ssl = 'SOURCE_SSL'
case SslCa = 'SOURCE_SSL_CA'
case SslCapath = 'SOURCE_SSL_CAPATH'
case SslCert = 'SOURCE_SSL_CERT'
case SslCipher = 'SOURCE_SSL_CIPHER'
case SslKey = 'SOURCE_SSL_KEY'
case SslVerifyServerCert = 'SOURCE_SSL_VERIFY_SERVER_CERT'
case SslCrl = 'SOURCE_SSL_CRL'
case SslCrlpath = 'SOURCE_SSL_CRLPATH'
case TlsVersion = 'SOURCE_TLS_VERSION'
case TlsCiphersuites = 'SOURCE_TLS_CIPHERSUITES'
case PublicKeyPath = 'SOURCE_PUBLIC_KEY_PATH'
case GetPublicKey = 'GET_SOURCE_PUBLIC_KEY'
case HeartbeatPeriod = 'SOURCE_HEARTBEAT_PERIOD'
case IgnoreServerIds = 'IGNORE_SERVER_IDS'
case CompressionAlgorithms = 'SOURCE_COMPRESSION_ALGORITHMS'
case ZstdCompressionLevel = 'SOURCE_ZSTD_COMPRESSION_LEVEL'
case AutoPosition = 'SOURCE_AUTO_POSITION'
case PrivilegeChecksUser = 'PRIVILEGE_CHECKS_USER'
case RequireRowFormat = 'REQUIRE_ROW_FORMAT'
case RequireTablePrimaryKeyCheck = 'REQUIRE_TABLE_PRIMARY_KEY_CHECK'
case ConnectionAutoFailover = 'SOURCE_CONNECTION_AUTO_FAILOVER'
case AssignGtidsToAnonymousTransactions = 'ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS'
case GtidOnly = 'GTID_ONLY'
case LogFile = 'SOURCE_LOG_FILE'
case LogPosition = 'SOURCE_LOG_POS'
case RelayLogFile = 'RELAY_LOG_FILE'
case RelayLogPosition = 'RELAY_LOG_POS'

Methods§

public function keyword(Terminology $terminology): string

Answers the keyword of the option in a vocabulary.

Parameters

$terminologyTerminology

Returns

string
Called from 1
Calls 3
public function renamed(): bool

Tells whether the legacy vocabulary spells the option with MASTER.

Returns

bool
Called from 1
Calls 2

Tells whether a value belongs to the domain of the option.

A file, host, path, name or algorithm list is a string; a port, count, switch or level a number; the heartbeat period a number literal that may have a fraction; IGNORE_SERVER_IDS a parenthesized list; PRIVILEGE_CHECKS_USER an account or NULL; SOURCE_TLS_CIPHERSUITES a string or NULL; the other two options their keywords, and for ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS also a UUID string.

Returns

bool
Called from 1
Calls 37
public function position(): bool

Tells whether the option is part of a log position: a file name or a position in it.

Returns

bool
Calls 4

Test cases 15§

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

Dedicated tests 4
Other tests reaching this symbol 11

Relations§

Method calls 2
Constant reads 168
Type declarations 5