從數據庫生成ER圖的工具:ERAlchemy
ERAlchemy一個能夠從數據庫或SQLAlchemy模型生成Entity Relation (ER)圖。
Install
To install ERAlchemy, just do:
$ pip install eralchemy
ERAlchemyrequires GraphViz to generate the graphs.
Use from python
from eralchemy import draw_er ## Draw from SQLAlchemy base draw_er(Base, 'erd_from_sqlalchemy.png') ## Draw from database draw_er("sqlite:///relative/path/to/db.db", 'erd_from_sqlite.png')
Use from the command line
$ eralchemy -i sqlite:///relative/path/to/db.db -o erd_from_sqlite.png
本文由用戶 dy83 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!