Files
mayfly-go/server/internal/db/api/vo/db_transfer.go
zongyangleo 6343173cf8 !124 一些更新和bug
* fix: 代码合并
* feat:支持数据库版本兼容,目前兼容了oracle11g部分特性
* fix: 修改数据同步bug,数据sql里指定修改字段别,导致未正确记录修改字段值
* feat: 数据库迁移支持定时迁移和迁移到sql文件
2024-10-20 03:52:23 +00:00

40 lines
1.8 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package vo
import (
"time"
)
type DbTransferTaskListVO struct {
Id uint64 `json:"id"`
CreateTime *time.Time `json:"createTime"`
Creator string `json:"creator"`
UpdateTime *time.Time `json:"updateTime"`
Modifier string `json:"modifier"`
RunningState int8 `json:"runningState"`
LogId uint64 `json:"logId"`
TaskName string `json:"taskName"` // 任务名称
Status int `json:"status"` // 任务状态 1启用 -1禁用
CronAble int `json:"cronAble"` // 是否定时 1是 -1否
Cron string `json:"cron"` // 定时任务cron表达式
Mode int `json:"mode"` // 数据迁移方式1、迁移到数据库 2、迁移到文件
TargetFileDbType string `json:"targetFileDbType"` // 目标文件数据库类型
CheckedKeys string `json:"checkedKeys"` // 选中需要迁移的表
DeleteTable int `json:"deleteTable"` // 创建表前是否删除表
NameCase int `json:"nameCase"` // 表名、字段大小写转换 1无 2大写 3小写
Strategy int `json:"strategy"` // 迁移策略 1全量 2增量
SrcDbId int64 `json:"srcDbId"` // 源库id
SrcDbName string `json:"srcDbName"` // 源库名
SrcTagPath string `json:"srcTagPath"` // 源库tagPath
SrcDbType string `json:"srcDbType"` // 源库类型
SrcInstName string `json:"srcInstName"` // 源库实例名
TargetDbId int `json:"targetDbId"` // 目标库id
TargetDbName string `json:"targetDbName"` // 目标库名
TargetDbType string `json:"targetDbType"` // 目标库类型
TargetInstName string `json:"targetInstName"` // 目标库实例名
TargetTagPath string `json:"targetTagPath"` // 目标库tagPath
}