Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_MYSQL_USER = "root" MAX_RETRIES = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InnodbStats ¶
type InnodbStats struct {
FileIO map[string]string
Log map[string]string
BufferPoolAndMem map[string]string
Transactions map[string]string
Metrics map[string]string
}
func ParseInnodbStats ¶
func ParseInnodbStats(blob string) (*InnodbStats, error)
Parse results from "SHOW ENGINE INNODB STATUS" query
type MysqlDB ¶
type MysqlDB interface {
// set the max number of database connections allowed at once
SetMaxConnections(maxConns int)
// makes query to database
// returns result as a mapping of strings to string arrays
// where key is column name and value is the items stored in column
// in same order as rows
QueryReturnColumnDict(query string) (map[string][]string, error)
// makes query to database
// returns result as a mapping of strings to string arrays
// where key is the value stored in the first column of a row
// and is mapped to the remaining values in the row
// in the order as they appeared in the row
QueryMapFirstColumnToRow(query string) (map[string][]string, error)
// Log Prints in to the logger
Log(in interface{})
// Closes the connection with the database
Close()
}
Click to show internal directories.
Click to hide internal directories.