Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCharSet = "utf8mb4" ReplicationMaster = "master" ReplicationSlave = "slave" ReplicationRelay = "relay" // it has master and slave roles at the same time )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
func NewMySQLConn ¶
NewMySQLConn returns connection to mysql database, be aware that addr is host:port style, default charset is utf8mb4
func (*Conn) GetReplicationRole ¶
func (*Conn) GetReplicationSlaveList ¶
Click to show internal directories.
Click to hide internal directories.