Vestmore_GO/generator/gen_model_test.go

16 lines
414 B
Go
Raw Permalink Normal View History

2024-04-07 16:03:37 +00:00
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) {
2024-04-10 09:30:12 +00:00
genModel := sql_generator.NewGenModel().WithOpenSqlDriver("mysql", "zunxinfinance:brTziKHKhsCxTcJmA#2@tcp(192.168.3.99:3307)/zunxinfinance?charset=utf8mb4")
2024-04-07 16:03:37 +00:00
genModel.WithGenFileDir("../model")
genModel.GenWithLogics()
}