Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nerdify/db-schema-diagram

Attempt to create a opensource alternative to dbdiagram.io. Including DSL parser and Diagram Viewer
https://github.com/nerdify/db-schema-diagram

Last synced: about 2 months ago
JSON representation

Attempt to create a opensource alternative to dbdiagram.io. Including DSL parser and Diagram Viewer

Awesome Lists containing this project

README

        

# DBScheme Parser [beta]

dbdiagram.io is an awesome tool, in nerdify we use it a lot. But sometime we wish to have a light open source alternative.

# Goals

1. Create a parser with fully sintax fully compatible con dbdiagram.io [check milestone [ #1](https://github.com/nerdify/db-schema-diagram/milestone/1)]
2. Develop a light component to render ER diagrams

# Sintax
You can try a demo here: [here](https://sad-bell-d1d31e.netlify.app/)

enum status {
open
closed
}

Table categories {
id integer [primary key]
name varchar
}

Table products {
id integer [primary key]
category_id integer
name varchar
}

Ref: products.category_id > categories.id

Will result

![Screenshot-20200519002039-972x516](https://user-images.githubusercontent.com/1248659/82293806-60552f80-996a-11ea-9bcf-d4438486613a.png)