Documentation ¶
Index ¶
- Constants
- func AddHistory(dbName string, SchemaName string, TableName string, Property HistoryProperty, ...) (int, error)
- func DBConnect(uri string) mysql.MysqlConnection
- func DelHistory(dbName string, ID int) bool
- func KillHistory(dbName string, ID int) error
- func Start(dbName string, ID int) error
- type HisotryStatus
- type History
- type HistoryProperty
- type TableStruct
- type ThreadStatus
Constants ¶
View Source
const ( CLOSE HisotryStatus = "close" RUNNING = "running" OVER = "over" HALFWAY = "halfway" KILLED = "killed" )
Variables ¶
This section is empty.
Functions ¶
func AddHistory ¶
func DBConnect ¶
func DBConnect(uri string) mysql.MysqlConnection
func DelHistory ¶
func KillHistory ¶
Types ¶
type HisotryStatus ¶
type HisotryStatus string
type History ¶
type History struct { sync.RWMutex ID int DbName string SchemaName string TableName string Property HistoryProperty Status HisotryStatus NowStartI int //当前第几条数据 ThreadPool []*ThreadStatus Fields []TableStruct `json:"-"` Uri string `json:"-"` ToServerIDList []int StartTime string OverTime string // contains filtered or unexported fields }
func GetHistoryList ¶
type HistoryProperty ¶
type TableStruct ¶
type TableStruct struct { COLUMN_NAME string COLUMN_DEFAULT string IS_NULLABLE string COLUMN_TYPE string COLUMN_KEY string EXTRA string COLUMN_COMMENT string DATA_TYPE string NUMERIC_PRECISION string NUMERIC_SCALE string ToDataType dataType.Type }
func GetSchemaTableFieldList ¶
func GetSchemaTableFieldList(db mysql.MysqlConnection, schema string, table string) []TableStruct
type ThreadStatus ¶
Click to show internal directories.
Click to hide internal directories.