!88 feat: dbms表支持右键菜单:删除表、编辑表、新建表、复制表

* feat: 支持复制表
* feat: dbms表支持右键菜单:删除表、编辑表、新建表
This commit is contained in:
zongyangleo
2024-01-23 04:08:02 +00:00
committed by Coder慌
parent 3b77ab2727
commit 3fc86f0fae
16 changed files with 330 additions and 33 deletions

View File

@@ -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操作 -------------------------