Skip to content

Create a D2 ERD Diagram from your existing postgres schema (golang port)

Notifications You must be signed in to change notification settings

LeKovr/d2-erd-from-postgres

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D2 ERD from Postgres

Example

D2 Diagrams are awesome. If you have a postgres database that already exists that you'd like to diagram, you can use this tool to generate an ERD.

Installation

  • Clone this repo

Usage

$ DATABASE_URL=postgres://postgres:postgres@localhost:5432/yourdb go run . > output.d2
$ d2 output.d2 out.svg

You will see that there are 2 gitignored files generated, out.svg and output.d2.

Happy hacking!

About

Create a D2 ERD Diagram from your existing postgres schema (golang port)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%