Skip to content

No relationships were detected in the schema with SchemaSpy #636

@ZhiliangWu

Description

@ZhiliangWu

Prerequisites

Description

Description of the issue, including:

  • what you have tried

I am trying to build locally the ERD like the mimic SchemaSpy as posted here. I tried both the old version (5.0.0) and newer version of SchemaSpy (6.1.0) on both the complete mimic and the mimic-demo databases installed locally. However, things worked good except that there is no relationships were detected after running the code as shown below.
image
image
Are there any tricks we should take so as to make it work?

  • queries demonstrating your question (if applicable)
$ java -jar schemaspy-6.1.0.jar -t pgsql -dp ../postgresql-42.2.8.jar -db mimic_demo -host localhost -port 5432 -s mimiciii -u xxxxxxxx  -p xxxx -o ./results -hq
  ____       _                          ____
 / ___|  ___| |__   ___ _ __ ___   __ _/ ___| _ __  _   _
 \___ \ / __| '_ \ / _ \ '_ ` _ \ / _` \___ \| '_ \| | | |
  ___) | (__| | | |  __/ | | | | | (_| |___) | |_) | |_| |
 |____/ \___|_| |_|\___|_| |_| |_|\__,_|____/| .__/ \__, |
                                             |_|    |___/

                                              6.1.0

SchemaSpy generates an HTML representation of a database schema's relationships.
SchemaSpy comes with ABSOLUTELY NO WARRANTY.
SchemaSpy is free software and can be redistributed under the conditions of LGPL version 3 or later.
http://www.gnu.org/licenses/

INFO  - Starting Main v6.1.0 on xxxxxxxx with PID 23252 (/home/xxxxxxxx/Downloads/schema/schemaspy-6.1.0.jar started by xxxxxxxx in /home/xxxxxxxx/Downloads/schema)
INFO  - The following profiles are active: default
INFO  - Started Main in 1.362 seconds (JVM running for 1.764)
INFO  - Starting schema analysis
INFO  - Connected to PostgreSQL - 9.6.15
INFO  - Gathering schema details
Gathering schema details...............................................(120sec)
Connecting relationships...............................................(0sec)
Writing/graphing summary.INFO  - Gathered schema details in 0 seconds
INFO  - Writing/graphing summary
INFO  - Graphviz rendered set to ''
........(2sec)
Writing/diagramming detailsINFO  - Completed summary in 2 seconds
INFO  - Writing/diagramming details
............................................(0sec)
Wrote relationship details of 44 tables/views to directory './results' in 123 seconds.
View the results by opening ./results/index.html
INFO  - Wrote table details in 0 seconds
INFO  - Wrote relationship details of 44 tables/views to directory './results' in 123 seconds.
INFO  - View the results by opening ./results/index.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions