question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate Entity Relationship Diagram (Database Schema Visualization)

See original GitHub issue

Idea

  • Provide a built-in way to generate an Entity Relationship Diagram from schema.prisma (or directly from the database)
  • Make it easy to access for Redwood developers
    • rw erd (ERD = Entity Relationship Diagram)
      • Generates a diagram and opens an image/svg or maybe an interactive webapp
    • in VSCode Redwood: Open Entity Relationship Diagram
      • Same as above, but opens the diagram in the context of VSCode

Why?

  • Even the simplest built-in diagram can help us enrich the workflow and tutorials

Implementation?

Ideally, prisma.io should provide this (since we’re treating schema.prisma as our source of truth). Unfortunately, I couldn’t find a concrete solution to this problem (maybe I missed something, @schickling?). Here are two related (open) issues:

As @dthyresson pointed out, there is a prisma->DBML generator, which we can then feed to dbdiagram.io. But this isn’t something we can integrate into our tooling since it depends on an online service.

Any ideas/pointers for the implementation are welcome 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
initplatformcommented, Mar 23, 2021

Can I ask what you used to generate the current diagrams in the documentation? I really like their look.

image

2reactions
thedavidpricecommented, Mar 23, 2021

@noire-munich I think you’ll be interested in seeing the visual graphing tools mentioned in this comment above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ER Diagram (ERD) Tool | Lucidchart
Lucidchart makes it easy to visualize your database structure and build ER diagrams online quickly and efficiently to save you time. Our ER...
Read more >
dbdiagram.io - Database Relationship Diagrams Design Tool
Quick and simple free tool to help you draw your database relationship diagrams and flow quickly using simple DSL language.
Read more >
Top 7 tools to create an Entity Relationship Diagram (ERD ...
Generate an ER Diagram from your existing SQL database online, automatically ... Design and visualize information systems, easily.
Read more >
Top 5 Free Database Diagram Design Tools (Updated)
ERD Plus is a basic database modeling tool for creating Entity Relationship Diagrams, Relational Schemas, Star Schemas, and SQL DDL statements.
Read more >
10 Best Free ER Diagram Tools in 2022 - GitMind
Thus, we've put together a list of free ER diagram tools that will help you construct a relational and logical structure of a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found