✨ Init
This commit is contained in:
18
utils/ast/ast_gorm_test.go
Normal file
18
utils/ast/ast_gorm_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package ast
|
||||
|
||||
import (
|
||||
"miniapp/global"
|
||||
"miniapp/model/example"
|
||||
"testing"
|
||||
)
|
||||
|
||||
const A = 123
|
||||
|
||||
func TestAddRegisterTablesAst(t *testing.T) {
|
||||
AddRegisterTablesAst("D:\\gin-vue-admin\\server.exe.exe\\utils\\ast_test.go", "Register", "test", "testDB", "testModel")
|
||||
}
|
||||
|
||||
func Register() {
|
||||
test := global.GetGlobalDBByDBName("test")
|
||||
test.AutoMigrate(example.ExaFile{})
|
||||
}
|
Reference in New Issue
Block a user