添加mysql的调试代码

This commit is contained in:
Yun
2024-04-06 18:22:44 +08:00
parent 92d79d2733
commit 1b1ef301c7
2 changed files with 24 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
package gormx_test
import (
"testing"
"code.yun.ink/pkg/gormx"
)
func TestGormx(t *testing.T) {
db := gormx.NewGorm(gormx.SetMysql(
"root",
"Huang@Yun.Ink123",
"127.0.0.1",
"xiaoxin-plus",
3306,
))
db.Get("")
}