postgresql 从关系数据库获取UML图

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4166316/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 22:43:33  来源:igfitidea点击:

Get UML diagram from relational database

postgresqluml

提问by Martin Preusse

I use PostegresQL 9. Is there a free tool to derive UML diagrams from my databases?

我使用 PostegresQL 9。是否有免费工具可以从我的数据库中导出 UML 图?

Thanks

谢谢

回答by vonPetrushev

For creating ER diagrams by db reflection, I use: DbVisualizer

为了通过 db 反射创建 ER 图,我使用:DbVisualizer

http://www.dbvis.com/

http://www.dbvis.com/

It's free.

免费。

回答by gorthx

There's also postgresql_autodocwhich can create GraphVizor Diaoutput. The diagrams will likely require further tweaking, though.

还有postgresql_autodoc可以创建GraphVizDia输出。不过,这些图表可能需要进一步调整。

回答by FabricioFCarv

There's a free tool called Diaand a plugin called PostDia. They would do it for you.

有一个名为Dia的免费工具和一个名为PostDia的插件。他们会为你做的。

Plus:

加:

  1. it generates postegres sql scheme files too
  2. Both are free.
  1. 它也会生成 postegres sql 方案文件
  2. 两者都是免费的

Requirements for PostDia: python and psycopg2, to install the second one:

PostDia 的要求:python 和 psycopg2,安装第二个:

pip install psycopg2

pip install psycopg2

回答by Paul Oskar Mayer

Found DBeaver here:

在这里找到 DBeaver:

https://softwarerecs.stackexchange.com/questions/34552/generate-database-table-diagrams-from-a-postgresql-database

https://softwarerecs.stackexchange.com/questions/34552/generate-database-table-diagrams-from-a-postgresql-database

Tested it with postgres. Works great.

用 postgres 测试过。效果很好。

https://dbeaver.io/download/

https://dbeaver.io/download/

free, multi-platform universal SQL client. Supports all popular databases: MySQL, PostgreSQL, MariaDB, SQLite, Oracle, DB2, SQL Server, Sybase, MS Access, Teradata, Firebird, Derby, etc.

免费的、多平台的通用 SQL 客户端。支持所有流行的数据库:MySQL、PostgreSQL、MariaDB、SQLite、Oracle、DB2、SQL Server、Sybase、MS Access、Teradata、Firebird、Derby 等。

回答by bancer

There was Azzurri Clayplugin for Eclipse with db reverse engineering support (v 1.4 as I remember). But in v 2.0 the company developing this pluginmoved the reverse engineering feature to the licensed version of the plugin. There were some manuals in the internet how to downgrade from v2 to v1.

有一个用于 Eclipse 的Azzurri Clay插件,带有 db 逆向工程支持(我记得是 1.4 版)。但是在 v 2.0 中,开发此插件公司将逆向工程功能移到了该插件的许可版本中。互联网上有一些手册如何从 v2 降级到 v1。

回答by UML GURU

EclipseUML can do the job but it is not free. What is cool with this tool is that they have a database profile therefore you can see full database information into your class diagram.

EclipseUML 可以完成这项工作,但它不是免费的。这个工具很酷的地方在于它们有一个数据库配置文件,因此你可以在你的类图中看到完整的数据库信息。

回答by Unreason

I think ArgoUMLcan do it. Let us know

我认为ArgoUML可以做到。让我们知道

EDIT: Actually ArgoUML does not seem to reverse engineer, take a look at http://databasetouml.org/roadmap.phpor search more for extensions to Eclipse

编辑:实际上 ArgoUML 似乎没有进行逆向工程,请查看http://databasetouml.org/roadmap.php或搜索更多 Eclipse 扩展