初步实现安装界面

This commit is contained in:
GoEdgeLab
2020-10-13 20:05:13 +08:00
parent 911e57b1f2
commit 23c0200e73
76 changed files with 2550 additions and 88 deletions

View File

@@ -0,0 +1,19 @@
package setup
import (
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestSQLExecutor_Run(t *testing.T) {
executor := NewSQLExecutor(&dbs.DBConfig{
Driver: "mysql",
Prefix: "edge",
Dsn: "root:123456@tcp(127.0.0.1:3306)/db_edge_new?charset=utf8mb4&multiStatements=true",
})
err := executor.Run()
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}