mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
* feat: 优化数据库 BINLOG 同步机制 * feat: 删除数据库实例前需删除关联的数据库备份与恢复任务 * refactor: 重构数据库备份与恢复模块 * feat: 定时清理数据库备份历史和本地 Binlog 文件 * feat: 压缩数据库备份文件
19 lines
516 B
Go
19 lines
516 B
Go
package repository
|
|
|
|
import (
|
|
"mayfly-go/internal/db/domain/entity"
|
|
"mayfly-go/pkg/model"
|
|
)
|
|
|
|
type DbRestore interface {
|
|
DbJob[*entity.DbRestore]
|
|
|
|
ListToDo(jobs any) error
|
|
GetDbNamesWithoutRestore(instanceId uint64, dbNames []string) ([]string, error)
|
|
|
|
// GetPageList 分页获取数据库任务列表
|
|
GetPageList(condition *entity.DbRestoreQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) (*model.PageResult[any], error)
|
|
|
|
GetEnabledRestores(toEntity any, backupHistoryId ...uint64) error
|
|
}
|