Coder Social home page Coder Social logo

mwb2sql's Introduction

mwb2sql

What is this?

mwb2sql is a shell command utility to produce sql file from mwb file (file format of MySQL Workbench).

Usage

on Windows

mwb2sql.bat sample/test.mwb a.sql

on Linux (with GUI)

sh mwb2sql.sh sample/test.mwb a.sql

on Linux (without GUI)

Xvfb :1 &
DISPLAY=:1 sh mwb2sql.sh sample/test.mwb a.sql

Known Issues

  • MySQL Workbench application always displays a window even if a script option is specified.
  • generateSQLCreateStatements function seems to have a option that control the behavior of dumping sql, but the option has no effect. (I can't find the way to enable the option).
    This has been reported to the MySQL team at: https://bugs.mysql.com/bug.php?id=84390 - if interested in a fix please create a bugs.mysql.com account and click the 'Affects me' button.

mwb2sql's People

Contributors

molexx avatar tomoemon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mwb2sql's Issues

SQL Object Filter

It would be nice if one could filter objects (Tables, Views, Routines or Triggers) as in MySQL Workbench GUI "Export/Forward Engineer SQL CREATE Script…".

Omitting schema in generated script

Problem with 3rd parameter of function generateSQLCreateStatements function seems to be solved. Use parameter 'OmitSchemas':1

--run-python "import os;import grt;from grt.modules import DbMySQLFE as fe;c = grt.root.wb.doc.physicalModels[0].catalog;fe.generateSQLCreateStatements(c, c.version, {'OmitSchemas':1});fe.createScriptForCatalogObjects(os.getenv('OUTPUT'), c, {'OmitSchemas':1})" ^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.