fusenapi/generator/gorm_gen_test.go

17 lines
305 B
Go
Raw Normal View History

2023-06-16 10:52:24 +00:00
package main
import (
"testing"
_ "github.com/go-sql-driver/mysql"
)
func TestXMain(t *testing.T) {
2023-06-21 03:29:09 +00:00
testGenDir = "../" + testGenDir
GenAllModels(testGenDir, TableNameComment{
Name: "FsFont",
Comment: "测试",
})
2023-06-16 10:52:24 +00:00
// Now you can use the generated GORM model to interact with the database
}