mysql

package
v0.0.0-...-1489327 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountMysql

func CountMysql(condArr map[string]string) int64

统计数量

Types

type Mysql

type Mysql struct {
	Id                     int    `orm:"pk;column(id);"`
	Db_Id                  int    `orm:"column(db_id);"`
	Host                   string `orm:"column(host);"`
	Port                   string `orm:"column(port);"`
	Alias                  string `orm:"column(alias);"`
	Connect                int    `orm:"column(connect);"`
	Role                   string `orm:"column(role);"`
	Version                string `orm:"column(version);"`
	Uptime                 string `orm:"column(uptime);"`
	Max_Connections        string `orm:"column(max_connections);"`
	Max_Connect_Errors     string `orm:"column(max_connect_errors);"`
	Open_Files_Limit       string `orm:"column(open_files_limit);"`
	Open_Files             string `orm:"column(open_files);"`
	Table_Open_Cache       string `orm:"column(table_open_cache);"`
	Open_Tables            string `orm:"column(open_tables);"`
	Threads_Connected      string `orm:"column(threads_connected);"`
	Threads_Running        string `orm:"column(threads_running);"`
	Threads_Waits          string `orm:"column(threads_waits);"`
	Key_Buffer_Size        string `orm:"column(key_buffer_size);"`
	Sort_Buffer_Size       string `orm:"column(sort_buffer_size);"`
	Join_Buffer_Size       string `orm:"column(join_buffer_size);"`
	Key_Blocks_Unused      string `orm:"column(key_blocks_unused);"`
	Key_Blocks_Used        string `orm:"column(key_blocks_used);"`
	Key_Blocks_Not_Flushed string `orm:"column(key_blocks_not_flushed);"`
	Key_Blocks_Used_Rate   string `orm:"column(key_blocks_used_rate);"`
	Key_Buffer_Read_Rate   string `orm:"column(key_buffer_read_rate);"`
	Key_Buffer_Write_Rate  string `orm:"column(key_buffer_write_rate);"`

	Created int64 `orm:"column(created);"`
}

func ListMysqlStatus

func ListMysqlStatus(condArr map[string]string, page int, offset int) (num int64, err error, mysql []Mysql)

获取Mysql状态列表

func (*Mysql) TableName

func (this *Mysql) TableName() string

Jump to

Keyboard shortcuts

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