mysql

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(config configuration.Config) (*sqlx.DB, error)

func Disconnect

func Disconnect()

func KillMySQLProcess

func KillMySQLProcess(killCommand string, dbConn *sqlx.DB) error

Types

type MysqlProcess

type MysqlProcess struct {
	ID             int            `db:"ID"`
	KillCommand    string         `db:"KILL_COMMAND"`
	DB             string         `db:"DB"`
	State          sql.NullString `db:"STATE"`
	Command        string         `db:"COMMAND"`
	Time           int            `db:"TIME"`
	Info           sql.NullString `db:"INFO"`
	TruncatedQuery string
}

func GetLongRunningQueries

func GetLongRunningQueries(dbConn *sqlx.DB, config configuration.Config) ([]MysqlProcess, error)

type SSHDialer

type SSHDialer struct {
	// contains filtered or unexported fields
}

func (*SSHDialer) Dial

func (self *SSHDialer) Dial(addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL