我有一个PostgreSQL数据库。我想从数据库中生成ERD。有没有内置工具或者第三方工具?
当前回答
在我们的许多项目中,我们的团队使用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的信息
其他回答
Open MySQL Workbench. In the home screen click 'Create EER Model From Existing Database'. We are doing this for the case that we have already made the data base and now we want to make an ER diagram of that database. Then you will see the 'Reverse Engineer Database' dialouge. Here if you are asked for the password, provided the admin password. Do not get confused here with the windows password. Here you need to provide the MySQL admin password. Then click on Next. In the next dialouge box, you'll see that the connection to DBMS is started and schema is revrieved from Database. Go next. Now Select the Schema you created earlier. It is the table you want to create the ER diagram of. Click Next and go to Select Objects menu. Here you can click on 'Show Filter' to use the selected Table Objects in the diagram. You can both add and remove tables here.Then click on Execute.
6.当您点击Next和Finish时,所需的ER图就会出现在屏幕上。
我写了这个实用程序,它自动从postgres数据库生成DSL代码,然后你可以将其粘贴到dbdiagram中。io/d网站获取ER图表
https://github.com/nsingla/dbdiagrams
pgModeler可以从PostgreSQL数据库生成良好的ER图。
https://pgmodeler.io/ 许可证: GPLv3
似乎没有手动,但没有手动也很容易。这是 QT应用程序。AFAIK, Fedora和Ubuntu软件包。(pgmodeler)
在pgModeler的最新版本(0.9.1)中,试用版允许您创建ERD(没有禁用设计按钮)。这样做:
点击设计按钮,首先创建一个空的“设计模型” 然后单击Import并连接到您想要的服务器和数据库(除非您已经在Manage中进行了设置,在这种情况下,所有数据库都可以在步骤3中选择) 导入所有对象(它会警告您正在导入当前模型,这很好,因为它是空的)。 现在切换回Design选项卡查看您的ERD。
也许可以看看AquaFold的Aqua Data Studio。它是一个具有实体关系图的数据库IDE。它还包括数据分析。它不是免费的,但考虑到它的功能,它的价格是非常合理的。
ERBuilder可以从PostgreSQL数据库生成ER图(反向工程特性)。
生成ER图的步骤如下:
•点击菜单->文件->逆向工程
•点击新建连接
•填写PostgresSQL连接信息
•点击确定
•点击“下一步”
•选择你想要逆向工程的对象(表,触发器,序列.....)。
•点击下一步。
如果您使用的是试用版,则会显示您的ERD 自动。 如果你使用的是免费版,你需要拖动 并从应用程序左侧的树视图中删除表
推荐文章
- 查询JSON类型内的数组元素
- 获得PostgreSQL数据库中当前连接数的正确查询
- MySQL数据库表中的最大记录数
- 从现有模式生成表关系图(SQL Server)
- HyperLogLog算法是如何工作的?
- 纬度和经度的数据类型是什么?
- 数据库和模式的区别
- 如何在PostgreSQL中临时禁用触发器?
- 输入文件似乎是一个文本格式转储。请使用psql
- 使用LIMIT/OFFSET运行查询,还可以获得总行数
- 当恢复sql时,psql无效命令\N
- 如何从命令行在windows中找到mysql数据目录
- 货币应该使用哪种数据类型?
- 如何添加列,如果不存在PostgreSQL?
- 如何找到MySQL的根密码