Это вывод в командной строке после вызова WB с --help
:
mysql-workbench [<options>] [<model file>]
Options:
--force-sw-render Force Xlib rendering
--force-opengl-render Force OpenGL rendering
--query <connection> Open a query tab to the named connection
--admin <instance> Open a administration tab to the named instance
--model <model file> Open the given EER model file
--script <script file> Execute the given Python or Lua script file
--run <script> Execute the given code in default language for GRT shell
--run-python <script> Execute the given code in Python
--run-lua <script> Execute the given code in Lua
--quit-when-done Quit Workbench when the script is done
--help, -h Show command line options and exit
--log-level=<level> Valid levels are: error, warning, info, debug1, debug2, debug3
--verbose Enable diagnostics output
--version Show Workbench version number and exit
Я полагаю, что вы можете загрузить свою модель, используя опцию --model
, а затем создать скрипт, который будет выполнять прямое проектирование, запускать его, используя опцию --run
, а затем дать команду WB выйти после завершения работы с --quit-when-done
. опция.
Вы можете обратиться к справке WB, чтобы узнать больше о создании сценариев, а также это руководство .