Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zekenie/d2-erd-from-postgres
Create a D2 ERD Diagram from your existing postgres schema
https://github.com/zekenie/d2-erd-from-postgres
d2 erd erdiagram postgres postgres-erd
Last synced: about 1 month ago
JSON representation
Create a D2 ERD Diagram from your existing postgres schema
- Host: GitHub
- URL: https://github.com/zekenie/d2-erd-from-postgres
- Owner: zekenie
- Created: 2022-11-27T18:23:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-27T18:25:17.000Z (almost 2 years ago)
- Last Synced: 2024-06-03T02:33:13.669Z (3 months ago)
- Topics: d2, erd, erdiagram, postgres, postgres-erd
- Language: JavaScript
- Homepage:
- Size: 260 KB
- Stars: 75
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## [D2](https://github.com/terrastruct/d2#related) ERD from Postgres
![Example](/./example.png)
[D2](https://github.com/terrastruct/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
- `npm install`## Usage
```sh
$ node index postgres://postgres:postgres@localhost:5432/yourdb
```You will see that there are 2 gitignored files generated, `out.svg` and `output.d2`.
Happy hacking!