Skip to content

Instantly share code, notes, and snippets.

@abhchand
Last active October 10, 2018 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhchand/c76b89048ab2350d3f8b97464cc597cb to your computer and use it in GitHub Desktop.
Save abhchand/c76b89048ab2350d3f8b97464cc597cb to your computer and use it in GitHub Desktop.
SchemaSpy Installation & Execution

SchemaSpy

Install Java

brew cask install java

Download SchemaSpy (original)

wget https://github.com/schemaspy/schemaspy/releases/download/v6.0.0/schemaspy-6.0.0.jar

Download JDBC driver (original)

wget https://jdbc.postgresql.org/download/postgresql-42.2.5.jar

Run SchemaSpy

Note: Remove -rails and -renderer if you don't want to generate output images. Speeds it up a lot

java -jar schemaspy-6.0.0.jar -t pgsql -db callrail_development -host localhost -u abhishek -o ./schemaspy -dp postgresql-42.2.5.jar -s public -noads -rails -renderer :cairo

Open output

open schemaspy/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment