A simple tool to generate Entity-Relationship-Diagrams based on text input or directly from a PostgreSQL database. The format of the text schema is inspired and based on "erd" by Andrew Gallant.
Make sure you have Graphviz installed and available in your $PATH
. Install the gem with gem install erde
or add it to your Gemfile
.
bin/erde file docs/schema.txt docs/schema.png
bin/erde database postgres://user:password@localhost/your_database docs/schema.png
[identities]
id
password
email
[players]
id
name
identity_id
players:identity_id -- identities:id