mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-06 14:45:48 +08:00
!88 feat: dbms表支持右键菜单:删除表、编辑表、新建表、复制表
* feat: 支持复制表 * feat: dbms表支持右键菜单:删除表、编辑表、新建表
This commit is contained in:
@@ -59,6 +59,13 @@ type Index struct {
|
||||
NonUnique int `json:"nonUnique"`
|
||||
}
|
||||
|
||||
type DbCopyTable struct {
|
||||
Id uint64 `json:"id"`
|
||||
Db string `json:"db" `
|
||||
TableName string `json:"tableName"`
|
||||
CopyData bool `json:"copyData"` // 是否复制数据
|
||||
}
|
||||
|
||||
// -----------------------------------元数据接口定义------------------------------------------
|
||||
// 数据库方言、元信息接口(表、列、获取表数据等元信息)
|
||||
type Dialect interface {
|
||||
@@ -97,6 +104,8 @@ type Dialect interface {
|
||||
GetDataType(dbColumnType string) DataType
|
||||
|
||||
FormatStrData(dbColumnValue string, dataType DataType) string
|
||||
|
||||
CopyTable(copy *DbCopyTable) error
|
||||
}
|
||||
|
||||
// ------------------------- 元数据sql操作 -------------------------
|
||||
|
||||
Reference in New Issue
Block a user