All Projects → k-kawa → erd

k-kawa / erd

Licence: other
Simplest DSL to draw ER diagrams executable on any environments

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to erd

ecto erd
A mix task for generating Entity Relationship Diagram from Ecto schemas available in your project.
Stars: ✭ 173 (+367.57%)
Mutual labels:  erd
X6
🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
Stars: ✭ 2,686 (+7159.46%)
Mutual labels:  erd
Dbeaver
Free universal database tool and SQL client
Stars: ✭ 23,752 (+64094.59%)
Mutual labels:  erd
erdantic
Entity relationship diagrams for Python data model classes like Pydantic
Stars: ✭ 63 (+70.27%)
Mutual labels:  erd
algorithm-bootcamp-sql
Teaching materials for Algorithm Bootcamp: Database Systems.
Stars: ✭ 18 (-51.35%)
Mutual labels:  erd
plant erd
ERD exporter with PlantUML and mermaid format
Stars: ✭ 126 (+240.54%)
Mutual labels:  erd
vuerd-electron
desktop ERD app
Stars: ✭ 20 (-45.95%)
Mutual labels:  erd
schema-voyager
Visualize Datomic schema
Stars: ✭ 15 (-59.46%)
Mutual labels:  erd
drawerd
DrawERD for rails.
Stars: ✭ 19 (-48.65%)
Mutual labels:  erd
typeorm-uml
Generate Entity Relationship diagrams for Typeorm powered projects.
Stars: ✭ 207 (+459.46%)
Mutual labels:  erd

ERD

The compiler of the simplest DSL to draw ER diagrams. This project is still under PoC phase.

Install

Execute the following command to install the latest version.

go get github.com/k-kawa/erd

Or download the executable binary suitable for your environment

Usage

You can write the table definitions with your favorite editor like this

User : All our customers {
  id
  email varchar(128) : User's email address
  name : User's name
}

Post {
  id
  blog_id -> Blog.id
  category_id -> Category.id
  title : title of the blog post
  text : plain text of the blog post
}

Blog {
  id
  user_id -> User.id
  name
}

Category {
  id
  name
  parent_category_id ..> Category.id
  blog_id -> Blog.id
}

and store it to sample.erd.

Then, you can convert it to the Graphviz Dot format with erd command like this.

$ cat sample.erd | erd convert
digraph er {
    ....
}

Finally you can convert it to a PNG image with dot command like this.

$ cat sample.erd | erd convert | dot -Tpng -o sample.png

sample.png

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].