Skip to content

megamsys/erde

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 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.

Fork of edgycircle/erde with fixes added to suit our development.

Motivation : Auto generating ERD from database

There are online tools like genmymodel which allows to build ERD diagrams.

We wanted a way where from a database we could draw a picture. This helps an instant update of schema and not making it stale.

Hence we would create make targets that gets triggered which generates schema, from the Makefile in our rust aran api server.

Install

Make sure you have Graphviz installed and available in your $PATH.

Install the gem with gem install erdf.

CLI Usage

erdf version
erdf file docs/schema.txt docs/schema.png
bin/erdf 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

About

Entity-Relationship-Diagramm-Erzeuger

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 90.3%
  • HTML 7.7%
  • Shell 2.0%