mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-26 09:39:37 +08:00
数据集
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user