d2
d2 copied to clipboard
d2plugin: Plugin for importing Postgres schema as CSV
Can auto-create a SQL table diagram
Can you elaborate on how this plugin would work? And why it'd be a plugin?
yeah scratch the plugin part. maybe d2 convert my_schema.csv schema_diagram.d2?
is there any indication within the .csv that it's a postgres schema? Perhaps we can automatically compile to svg.
like d2 my_schema.csv generates my_schema.svg
then to generate a .d2 file you do:
d2 --output-format=d2 my_schema.csv
Same method for handling .dot and .mmd files.
This way D2 is a drop in compiler for .dot and .mmd.