mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-18 23:30:25 +08:00
feat: 实现数据库备份和恢复并发调度 (#84)
This commit is contained in:
@@ -10,17 +10,17 @@ import (
|
||||
type DbBinlog struct {
|
||||
model.Model
|
||||
|
||||
LastStatus TaskStatus // 最近一次执行状态
|
||||
LastStatus DbJobStatus // 最近一次执行状态
|
||||
LastResult string // 最近一次执行结果
|
||||
LastTime timex.NullTime // 最近一次执行时间
|
||||
DbInstanceId uint64 `json:"dbInstanceId"` // 数据库实例ID
|
||||
}
|
||||
|
||||
func NewDbBinlog(instanceId uint64) *DbBinlog {
|
||||
binlogTask := &DbBinlog{}
|
||||
binlogTask.Id = instanceId
|
||||
binlogTask.DbInstanceId = instanceId
|
||||
return binlogTask
|
||||
job := &DbBinlog{}
|
||||
job.Id = instanceId
|
||||
job.DbInstanceId = instanceId
|
||||
return job
|
||||
}
|
||||
|
||||
// BinlogFile is the metadata of the MySQL binlog file.
|
||||
|
||||
Reference in New Issue
Block a user