pub enum SourceOption {
Show 37 variants
SourceBind,
SourceHost,
SourceUser,
SourcePassword,
SourcePort,
SourceConnectRetry,
SourceRetryCount,
SourceDelay,
SourceHeartbeatPeriod,
SourceLogFile,
SourceLogPos,
SourceAutoPosition,
RelayLogFile,
RelayLogPos,
SourceSsl,
SourceSslCa,
SourceSslCapath,
SourceSslCert,
SourceSslCipher,
SourceSslKey,
SourceSslVerifyServerCert,
SourceSslCrl,
SourceSslCrlpath,
SourceTlsVersion,
SourceTlsCiphersuites,
SourcePublicKeyPath,
GetSourcePublicKey,
NetworkNamespace,
IgnoreServerIds,
SourceCompressionAlgorithms,
SourceZstdCompressionLevel,
PrivilegeChecksUser,
RequireRowFormat,
RequireTablePrimaryKeyCheck,
SourceConnectionAutoFailover,
AssignGtidsToAnonymousTransactions,
GtidOnly,
}Expand description
The closed set of CHANGE REPLICATION SOURCE TO option names admitted by mysql:8.4.10.
A surface tag (no meta; the span rides the enclosing ChangeReplicationSourceOption).
The set is the 8.4 grammar’s source_def/source_file_def alternatives, engine-narrowed:
the deprecated MASTER_* names were removed (each ER_PARSE_ERROR), and the compression
option is the plural SOURCE_COMPRESSION_ALGORITHMS — the singular
SOURCE_COMPRESSION_ALGORITHM (the yacc token’s bare name) is ER_PARSE_ERROR on
mysql:8.4.10, so only the plural keyword is admitted.
Variants§
SourceBind
SOURCE_BIND — the network interface to bind to.
SourceHost
SOURCE_HOST — the source server host name.
SourceUser
SOURCE_USER — the replication account user name.
SourcePassword
SOURCE_PASSWORD — the replication account password.
SourcePort
SOURCE_PORT — the source server TCP port.
SourceConnectRetry
SOURCE_CONNECT_RETRY — seconds between reconnection attempts.
SourceRetryCount
SOURCE_RETRY_COUNT — the reconnection-attempt cap.
SourceDelay
SOURCE_DELAY — the replication delay in seconds.
SourceHeartbeatPeriod
SOURCE_HEARTBEAT_PERIOD — the heartbeat interval (a fractional number of seconds).
SourceLogFile
SOURCE_LOG_FILE — the source binary-log file name to read from.
SourceLogPos
SOURCE_LOG_POS — the source binary-log position to read from.
SourceAutoPosition
SOURCE_AUTO_POSITION — enable GTID auto-positioning (0/1).
RelayLogFile
RELAY_LOG_FILE — the relay-log file name to resume from.
RelayLogPos
RELAY_LOG_POS — the relay-log position to resume from.
SourceSsl
SOURCE_SSL — enable an encrypted connection (0/1).
SourceSslCa
SOURCE_SSL_CA — the certificate-authority file.
SourceSslCapath
SOURCE_SSL_CAPATH — the certificate-authority directory.
SourceSslCert
SOURCE_SSL_CERT — the client public-key certificate file.
SourceSslCipher
SOURCE_SSL_CIPHER — the permitted cipher list.
SourceSslKey
SOURCE_SSL_KEY — the client private-key file.
SourceSslVerifyServerCert
SOURCE_SSL_VERIFY_SERVER_CERT — verify the source certificate (0/1).
SourceSslCrl
SOURCE_SSL_CRL — the certificate-revocation-list file.
SourceSslCrlpath
SOURCE_SSL_CRLPATH — the certificate-revocation-list directory.
SourceTlsVersion
SOURCE_TLS_VERSION — the permitted TLS-protocol list.
SourceTlsCiphersuites
SOURCE_TLS_CIPHERSUITES — the permitted TLSv1.3 ciphersuite list (string, or NULL).
SourcePublicKeyPath
SOURCE_PUBLIC_KEY_PATH — the RSA public-key file for password exchange.
GetSourcePublicKey
GET_SOURCE_PUBLIC_KEY — request the RSA public key from the source (0/1).
NetworkNamespace
NETWORK_NAMESPACE — the network namespace.
IgnoreServerIds
IGNORE_SERVER_IDS — the parenthesized server-id ignore list.
SourceCompressionAlgorithms
SOURCE_COMPRESSION_ALGORITHMS — the permitted connection-compression algorithms.
SourceZstdCompressionLevel
SOURCE_ZSTD_COMPRESSION_LEVEL — the zstd compression level.
PrivilegeChecksUser
PRIVILEGE_CHECKS_USER — the account whose privileges gate applied transactions (an
account, or NULL).
RequireRowFormat
REQUIRE_ROW_FORMAT — require row-based events (0/1).
RequireTablePrimaryKeyCheck
REQUIRE_TABLE_PRIMARY_KEY_CHECK — the primary-key-check policy
(ON/OFF/STREAM/GENERATE).
SourceConnectionAutoFailover
SOURCE_CONNECTION_AUTO_FAILOVER — enable asynchronous connection failover (0/1).
AssignGtidsToAnonymousTransactions
ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS — the anonymous-transaction GTID policy
(OFF/LOCAL/'<uuid>').
GtidOnly
GTID_ONLY — replicate using only GTIDs, storing no file/position (0/1).
Implementations§
Trait Implementations§
Source§impl Clone for SourceOption
impl Clone for SourceOption
Source§fn clone(&self) -> SourceOption
fn clone(&self) -> SourceOption
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more