Vestmore_GO/generator/gen_model_test.go
2024-04-10 17:30:12 +08:00

16 lines
414 B
Go

package vestmore_generator
import (
"testing"
sql_generator "github.com/474420502/generator/sql"
_ "github.com/go-sql-driver/mysql" // MySQL driver
)
func TestGenModel(t *testing.T) {
genModel := sql_generator.NewGenModel().WithOpenSqlDriver("mysql", "zunxinfinance:brTziKHKhsCxTcJmA#2@tcp(192.168.3.99:3307)/zunxinfinance?charset=utf8mb4")
genModel.WithGenFileDir("../model")
genModel.GenWithLogics()
}