back

by allanrbo·3y ago·view on hn ↗
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