innovationOUtside / ipython_magic_eralchemy

IPython magic to display ERDs / entity relationship diagrams produced by eralchemy
MIT License
2 stars 0 forks source link

Incorrect cardinality / arrowheads on ERD table references #2

Open psychemedia opened 6 years ago

psychemedia commented 6 years ago

The cardinality of references between tables that are returned from eralchemy aren't correct...

See issue: https://github.com/Alexis-benoist/eralchemy/issues/30#issuecomment-364954185

psychemedia commented 6 years ago

The model used by eralchemy is generated using from sqlalchemy.ext.automap import automap_base in eralchemy/eralchemy/sqla.py.

See also https://github.com/fschulze/sqlalchemy_schemadisplay which parses the sqlalchemy response to generate an ER graph.

It would be handy to be able to just print off a txt representation of structure of db from sqlalchemy?