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

How to Reverse Database Schema into Entity Relationship #31

Open
arietto opened this issue Feb 16, 2016 · 1 comment
Open

How to Reverse Database Schema into Entity Relationship #31

arietto opened this issue Feb 16, 2016 · 1 comment

Comments

@arietto
Copy link

arietto commented Feb 16, 2016

Hello! Is it possible to generate models from a database schema? Like here: http://www.treefrogframework.org/documents/generator
It maybe helpful in such case: http://programmers.stackexchange.com/questions/299715/using-orms-in-two-separate-programs-which-share-a-db

@rjmcguire
Copy link

It is possible. You could have a go at it.

I normally use pegged to do compile time parsing:
https://github.com/PhilippeSigaud/Pegged

I don't see an example sql PEG.

This could be used as a guide though:
https://github.com/steveyen/sqld3/blob/master/sql.pegjs

On Tue, Feb 16, 2016 at 10:08 AM, arietto [email protected] wrote:

Hello! Is it possible to generate models from a database schema? Like
here: http://www.treefrogframework.org/documents/generator
It maybe helpful in such case:
http://programmers.stackexchange.com/questions/299715/using-orms-in-two-separate-programs-which-share-a-db


Reply to this email directly or view it on GitHub
#31.

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

No branches or pull requests

2 participants