SQLAlchemy ER diagram in python 3

后端 未结 3 2086
Happy的楠姐
Happy的楠姐 2021-02-05 18:11

Does anyone know a way to make an ER diagram from SQLAlchemy models in python 3. I found sqlalchemy_schemadisplay, which is python 2 because of pydot and ERAlchemy which is also

3条回答
  •  礼貌的吻别
    2021-02-05 19:11

    SQLAlchemy_SchemaDisplay works for me, too.

    On Windows I installed Graphviz and these requirements via pip:

    • pydot
    • sqlalchemy
    • sqlalchemy_schemadisplay
    • graphviz

    Then I added the Grapviz binary (bin) folder to the path and ran the code from the example at https://github.com/sqlalchemy/sqlalchemy/wiki/SchemaDisplay

提交回复
热议问题