mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 07:50:25 +08:00
* fix: 代码合并 * feat:支持数据库版本兼容,目前兼容了oracle11g部分特性 * fix: 修改数据同步bug,数据sql里指定修改字段别,导致未正确记录修改字段值 * feat: 数据库迁移支持定时迁移和迁移到sql文件
33 lines
596 B
Go
33 lines
596 B
Go
package dto
|
|
|
|
import (
|
|
"mayfly-go/internal/db/dbm/dbi"
|
|
"mayfly-go/internal/db/domain/entity"
|
|
tagentity "mayfly-go/internal/tag/domain/entity"
|
|
"mayfly-go/pkg/utils/writer"
|
|
)
|
|
|
|
type SaveDbInstance struct {
|
|
DbInstance *entity.DbInstance
|
|
AuthCerts []*tagentity.ResourceAuthCert
|
|
TagCodePaths []string
|
|
}
|
|
|
|
type DumpDb struct {
|
|
DbId uint64
|
|
DbName string
|
|
Tables []string
|
|
DumpDDL bool // 是否dump ddl
|
|
DumpData bool // 是否dump data
|
|
|
|
LogId uint64
|
|
|
|
Writer writer.CustomWriter
|
|
Log func(msg string)
|
|
TargetDbType dbi.DbType
|
|
}
|
|
|
|
func DefaultDumpLog(msg string) {
|
|
|
|
}
|