19 lines
229 B
Go
19 lines
229 B
Go
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("")
|
|
}
|