Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic support for MySql #26

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

erichmx
Copy link

@erichmx erichmx commented Nov 2, 2016

Added basic support to generate MySql/MariaDB scripts. It should be straightforward to add support for more RDBMS supported by https://github.com/martinjw/dbschemareader

Added this NuGet packages:

  • DatabaseSchemaReader to read the database objects
  • Handlebars.Net used in the SqlGen.MySql writers for the templates
  • MySql.Data

I changed the assembly version to 1.1.0.0 as this is a significant change, but its backwards compatible, the scripts for MsSql are generated in the same way as before.

Some limitations:

  • Foreign Keys need to contain the string fk_ in the name, and this indexes are not generated.

To test it you can do it with this parameters, after creating the user and restoring the sakila DB from powerup\testdatabase\mysql\sakila-db:
/pn=mysql /s=localhost /d=sakila -u=sakilausr -p=Sakila123098! /o=C:\Temp\sakila\

Because when Chuck Norris does MySql he is actually doing HisSql!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant