Skip to content

Instantly share code, notes, and snippets.

@khanhtran3005
Last active July 16, 2021 10:14
Show Gist options
  • Save khanhtran3005/7794b3b06dcbd60ff8abe25ae4d37774 to your computer and use it in GitHub Desktop.
Save khanhtran3005/7794b3b06dcbd60ff8abe25ae4d37774 to your computer and use it in GitHub Desktop.
Install and configure SchemaSpy to generate Postgres schema

MacOS: Mojave 10.14.12

Run the following command to generate your schema:

java -jar path_to_schemaspy -s public -t pgsql -dp path_to_pgsql_driver -db db_name -host localhost -port 5432 -u root -p root -o path_to_output -gv /usr/local/Cellar/graphviz/2.40.1/ -renderer :cairo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment