package
2.6.1+incompatible
Repository: https://github.com/moiot/moha.git
Documentation: pkg.go.dev

# Functions

CloseDB closes the db connection.
CreateDB creates db connection using the cfg.
GetMasterStatus shows master status of MySQL.
GetRunningDDLCount returns the count of ddls that are running.
GetRunningProcesses get all running processes.
GetServerUUID returns the uuid of current mysql server.
GetSlaveStatus runs `show slave status` ans return the result as a map[string]string.
GetTxnIDFromGTIDStr get the last txn id from the gtidset and serverUUID.
KillProcess kill the process given the pid.
PromoteToMaster promotes the db to master.
RedirectMaster directs db to a different master.
Select1 is used to test connection.
SetReadOnly add read lock to db.
SetReadWrite release read lock to db.
WaitCatchMaster blocks until mysql catches given gtid.

# Structs

GTIDSet wraps mysql.MysqlGTIDSet.