Files
mayfly-go/server/internal/db/application/dto/dto.go
2024-10-21 22:27:42 +08:00

33 lines
567 B
Go

package dto
import (
"io"
"mayfly-go/internal/db/dbm/dbi"
"mayfly-go/internal/db/domain/entity"
tagentity "mayfly-go/internal/tag/domain/entity"
)
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 io.WriteCloser
Log func(msg string)
TargetDbType dbi.DbType
}
func DefaultDumpLog(msg string) {
}