数据源

This commit is contained in:
XM-GO
2023-04-25 17:20:27 +08:00
parent 5dfa341083
commit 3da0dc3936
20 changed files with 1244 additions and 47 deletions

View File

@@ -0,0 +1,9 @@
package driver
type DbMetadata interface {
GetTables() []map[string]interface{}
GetColumns(tableNames ...string) []map[string]interface{}
GetPrimaryKey(tableName string) string
GetTableInfos() []map[string]interface{}
GetTableRecord(tableName string, pageNum, pageSize int) ([]string, []map[string]interface{}, error)
}