You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- @echo off
-
- set Table=*
- set TName=""
- set one=%1
-
- if "%one%" NEQ "" (
- set Table=%one%
- set TName="^%one%$"
- )
-
- set BasePath="./"
- set DBUSER="root"
- set DBPSW="ZhiSheng123.com"
- set DBNAME="smart_canteen"
- set DBHOST="39.108.126.122"
- set DBPORT="3306"
-
- del "app\db\model\%Table%.go"
-
- echo start reverse table %Table%
-
- xorm reverse mysql "%DBUSER%:%DBPSW%@tcp(%DBHOST%:%DBPORT%)/%DBNAME%?charset=utf8" %BasePath%/etc/db_tpl %BasePath%/app/db/model/ %TName%
-
- echo end
|