Hacker News new | ask | show | jobs
by allanrbo 1110 days ago
did you consider letting the input be just sql ddl rather than yet another layer of ddl?
1 comments

Every database has its own flavor of SQL syntax for DDLs. So, we settled on a minimal common syntax.

We will have "import" functionality available soon. You should be able to convert database specific DDLs into diagram language.

Suggest checking out the sqlparse library for a way to do the different flavours without needing to address each case directly: https://github.com/andialbrecht/sqlparse