【问题标题】:How to generate models from database structure existing如何从现有的数据库结构生成模型
【发布时间】:2016-03-15 09:22:40
【问题描述】:

有一些工具或应用程序可以对数据库进行备份/导出(可能是 .sql 文件),并且可以生成与实体关系模型类似的结果,这意味着图形中的表?

我的数据库在 PostgreSQL 中,虽然这应该是透明的?

另一个问题。在 django 中,是否可以从我的项目中的模型生成模型实体关系?

【问题讨论】:

    标签: database postgresql django-models entity-relationship case-tools


    【解决方案1】:

    我不知道从 sql 转储中的任何工作,但从运行 postrgresql db schemaSpy 工作得很好而且很容易

    java -jar schemaSpy.jar -t dbType -db dbName [-s schema] -u user [-p password] -o outputDir
    

    这里是output的示例

    【讨论】:

      猜你喜欢
      • 2016-03-06
      • 1970-01-01
      • 1970-01-01
      • 2012-07-01
      • 1970-01-01
      • 2012-05-18
      • 2016-05-05
      • 2011-02-02
      • 1970-01-01
      相关资源
      最近更新 更多