Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- @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="Fnuo123com@"
- set DBNAME="advertisement"
- set DBHOST="119.23.182.117"
- set DBPORT="3306"
-
- del "src\models\%Table%.go"
-
- echo start reverse table %Table%
-
- xorm reverse mysql "%DBUSER%:%DBPSW%@tcp(%DBHOST%:%DBPORT%)/%DBNAME%?charset=utf8" %BasePath%/etc/db_tpl %BasePath%/src/model/ %TName%
-
- echo end
|