19 lines
366 B
Go
19 lines
366 B
Go
|
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{})
|
||
|
}
|