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", "php:aFk3i4Dj#76!4sd@tcp(47.243.100.6:3306)/zunxinfinance?charset=utf8mb4&timeout=3s") genModel.WithGenFileDir("../model") genModel.GenWithLogics() }