Skip to content

edgycircle/erde

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entity-Relationship-Diagramm-Erzeuger

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.

Install

Make sure you have Graphviz installed and available in your $PATH. Install the gem with gem install erde or add it to your Gemfile.

CLI Usage

bin/erde file docs/schema.txt docs/schema.png
bin/erde database postgres://user:password@localhost/your_database docs/schema.png

Text Schema Format

[identities]
id
password
email

[players]
id
name
identity_id

players:identity_id -- identities:id