package
8.5.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb-binlog.git
Documentation: pkg.go.dev
# Functions
ExecuteSQLs execute sqls in a transaction with retry.
ExecuteSQLsWithHistogram execute sqls in a transaction with retry.
ExecuteTxn executes transaction.
ExecuteTxnWithHistogram executes transaction.
GetOraclePosition return oracle scn.
GetSQLErrCode returns error code if err is a mysql error.
GetTidbPosition gets tidb's position.
IgnoreDDLError checks the error can be ignored or not.
OpenCH opens a connection to CH and returns the standard SQL driver's DB interface.
OpenDB creates an instance of sql.DB.
OpenDBWithSQLMode creates an instance of sql.DB.
ParseCHAddr parses an address config string to CHHostAndPort pairs.
QuoteName quote name like `name`.
QuoteSchema quote like `dbname`.`table` name.
ScanRow scans rows into a map.
# Variables
MaxDDLRetryCount defines maximum number of times of DDL retrying.
MaxDMLRetryCount defines maximum number of times of DML retrying.
RetryWaitTime defines wait time when retrying.
SlowWarnLog defines the duration to log warn log of sql when exec time greater than.
# Structs
CHHostAndPort is a CH host:port pair.