You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
499 B
Batchfile

3 years ago
@echo off
@echo ??????????????
3 years ago
::set tables=user,user_platform
set tables=rank_pvp
3 years ago
set targetDir=.\model
set templateDir=..\..\doc\template
set host=127.0.0.1
set port=3306
::set host=192.168.1.100
::set port=3306
::set dbname=dcg
set dbname=dmgame
3 years ago
set username=root
set password=root
for %%i in (%tables%) do (
echo ????????? %dbname% ??? %%i
3 years ago
goctl model mysql datasource --url "%username%:%password%@tcp(%host%:%port%)/%dbname%" -t %%i -d %targetDir% --style go_zero --home %templateDir%
)