package
8.2.0+incompatible
Repository: https://github.com/pingcap/tiflow.git
Documentation: pkg.go.dev

# Functions

CheckIfBDRModeIsSupported checks if the downstream supports BDR mode.
CheckIsTiDB checks if the downstream is TiDB.
CreateMySQLDBConn creates a mysql database connection with the given dsn.
GenBasicDSN generates a basic DSN from the given config.
GenerateDSN generates the dsn with the given config.
GetTestDB checks and adjusts the password of the given DSN, it will return a DB instance opened with the adjusted password.
MockTestDB creates a mock mysql database connection.
NewConfig returns the default mysql backend config.
QueryMaxAllowedPacket gets the value of max_allowed_packet.
QueryMaxPreparedStmtCount gets the value of max_prepared_stmt_count.
SetWriteSource sets write source for the transaction.

# Constants

BackoffBaseDelay indicates the base delay time for retrying.
BackoffMaxDelay indicates the max delay time for retrying.
DefaultMaxTxnRow is the default max number of rows in a transaction.
DefaultWorkerCount is the default number of workers.

# Structs

Config is the configs for MySQL backend.

# Type aliases

Factory is the factory for creating db connection.