MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - Generator invoking MySQL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Generator invoking MySQL

 Post Reply Post Reply
Author
Message
knto View Drop Down
Member
Member
Avatar

Joined: 17.May.2013
Location: Spain
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote knto Quote  Post ReplyReply Direct Link To This Post Topic: Generator invoking MySQL
    Posted: 17.May.2013 at 17:31
Good afternoon Smile

I'm a newbie, and I have an inquiry. I want to know if it is possible with metaEdit to create a generator who call mysql and makes some inserts.
I get to the point to generate the SQL sentences out of the model. Can anyone please give me an insight on how I can do it? I will be great Big smile

Thanks and best regards.
Back to Top
janne View Drop Down
MetaCase
MetaCase
Avatar

Joined: 25.Mar.2008
Points: 58
Post Options Post Options   Thanks (1) Thanks(1)   Quote janne Quote  Post ReplyReply Direct Link To This Post Posted: 20.May.2013 at 09:59
Please see the 'Orders and produts' sample in Example project (Entity Relationship Diagram), there exists 'Create SQL' generator for creating the tables and attribute definitions and constraints. In the similar manner you could create your mysql-specific generator or customize the existing one to contain the insertion commands as well.

In the end of the generator you may execute the SQL statements in a script file (batch file) :

external 'mysql YOUR_DB <your_script.sql>' execute
[Edit: removed incorrect double quotes -Steve]



Edited by stevek - 20.May.2013 at 11:30
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.039 seconds.