数据集

This commit is contained in:
XM-GO
2023-04-27 17:17:46 +08:00
parent a01b7bb55d
commit efbf5917a7
10 changed files with 231 additions and 27 deletions

View File

@@ -6,6 +6,7 @@ import (
"github.com/XM-GO/PandaKit/biz"
"log"
"pandax/apps/visual/entity"
"strings"
_ "github.com/go-sql-driver/mysql"
)
@@ -45,6 +46,13 @@ const (
WHERE table_schema = (SELECT database()) AND table_name in (%s) ORDER BY tableName, ordinal_position`
)
func sqlFix(sql string) string {
if strings.LastIndex(sql, ";") == (len(sql) - 1) {
sql = sql[0 : len(sql)-1]
}
return sql
}
type MysqlMetadata struct {
di *DbInstance
}