Here's how to use it to generate schema relationship diagrams for PostgreSQL databases.
- Download the jar file from here (the current version is schemaSpy_5.0.0.jar)
- Note: There is a release candidate for version 6, but I couldn't get that to play nicely with graphviz on Mac OS 10.13
- Get the PostgreSQL JDBC driver (either the JDBC3 or JDBC4 jar file is fine)
- Install graphviz
brew install graphviz
java -jar ~/Downloads/schemaSpy_5.0.0.jar -renderer :quartz -t pgsql -db dnli -u sandmann -o /tmp -dp ~/Downloads/postgresql-42.1.4.jar -s public -host localhost
The index.html
file is generated at /tmp/index.html
.