我有一个PostgreSQL数据库。我想从数据库中生成ERD。有没有内置工具或者第三方工具?
当前回答
pgAdmin 4版本30及更新版本可以从现有数据库生成ERD。只需右键单击数据库并选择Generate ERD。
其他回答
pgModeler可以从PostgreSQL数据库生成良好的ER图。
https://pgmodeler.io/ 许可证: GPLv3
似乎没有手动,但没有手动也很容易。这是 QT应用程序。AFAIK, Fedora和Ubuntu软件包。(pgmodeler)
在pgModeler的最新版本(0.9.1)中,试用版允许您创建ERD(没有禁用设计按钮)。这样做:
点击设计按钮,首先创建一个空的“设计模型” 然后单击Import并连接到您想要的服务器和数据库(除非您已经在Manage中进行了设置,在这种情况下,所有数据库都可以在步骤3中选择) 导入所有对象(它会警告您正在导入当前模型,这很好,因为它是空的)。 现在切换回Design选项卡查看您的ERD。
我使用DrawERD为ERD和DB文件。https://drawerd.com
在我们的许多项目中,我们的团队使用Visual Paradigm从数据库中生成ER图。虽然我们主要在MS SQL和Oracle上工作,但据我所知,他们也支持一些其他的DBMS,如PostgreSQL, MySQL, Sybase, DB2和SQLite。
步骤:
Select Tools > DB > Reverse Database... from the toolbar of Visual Paradigm Keep the settings as is and click Next Select PostgreSQL as driver and provide the driver file there. You can simply click on the download link there to get the driver. Enter the hostname, database name, user and password, and then click Next They will then study your database and lists out the tables in it. Select the table to form an ERD and continue, and that's it. An ERD will be generated with the tables you selected presented.
顺便说一下,它们还支持从ERD生成和更新数据库模式。
希望这能有所帮助。: -)
更多关于从PostgreSQL数据库生成ERD的信息
你可以使用dbeaver来做到这一点。它允许您将ER图导出为png/svg等格式。
德布弗 - https://dbeaver.io/
双击一个模式(例如,模式->公共->表)并打开“ER图”选项卡(在“属性”选项卡旁边)
pgAdmin 4版本30及更新版本可以从现有数据库生成ERD。只需右键单击数据库并选择Generate ERD。
推荐文章
- 为什么PostgreSQL要对索引列进行顺序扫描?
- PostgreSQL INSERT ON冲突更新(upsert)使用所有排除的值
- 如何检查一个表是否存在于给定的模式中
- 如何在SQL Server Management Studio中查看查询历史
- 如何将整数转换为字符串作为PostgreSQL查询的一部分?
- Psycopg2:用一个查询插入多行
- PostgreSQL返回JSON数组的结果集?
- PostgreSQL通配符LIKE用于单词列表中的任何一个
- 如何创建数据库的MongoDB转储?
- 检查Postgres JSON数组是否包含字符串
- psql: FATAL: Peer authentication failed for user "dev"
- 如何在Postgres/SQL中获得两个整数的最小/最大值?
- 多语言数据库设计的最佳实践是什么?
- 如何在postgresql中显示函数,过程,触发器源代码?
- 什么时候不使用Cassandra?