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.

Support for database diagram

See original GitHub issue

Okay, so here’s the idea which I’ll try to implement (as it is one of features my mentor requests me to do, and I guess it would be really nice one to have!). I was thinking of making database diagramming component which would produce database visualization based on database tables, views and their references (primary and foreign keys! -> this will need some smaller extension of back-end API). The idea is to spit out simple HTML tables connected with related tables. Furthermore, user would be able to reopen diagram once it’s already generated (so some simple JSON with coordinates would be created upon generating diagram). I was searching around for suitable library and found JointJS and JS-graph-it to be probably the best choice for this use case. Both mentioned libraries have things we need - simple API, connecting custom HTML elements (which would be our tables/views), draggable nodes and connections. Of course, if anyone has better library to propose, please do.

TL;DR: I’ll try to build support for creating database diagrams and storing them so user can reopen already existing diagrams.

EDIT: Think I’ll go with JointJS as it is hosted on npm, supports nesting children elements inside of a parent (i.e. each table is a parent element with sub elements for each attribute), offers a rich API and supports graph export to JSON and reading it from JSON, so persisting the graph object should be trivial.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
BornaPcommented, Jun 15, 2016

Since the feature was implemented with #189 and further enhanced with #192 , #194 ,#195 and #198 , I’ll close the issue. Further enhancements or possible bugs should be discussed in their own issues.

1reaction
joeblew99commented, Jun 12, 2016

i wil try it out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Database Diagram Support Objects cannot be Installed .. ...
Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files ...
Read more >
SQL SERVER - ERROR: FIX - Database diagram support ...
Let us learn about error Database diagram support objects cannot be installed because this database does not have a valid owner.
Read more >
SSMS Database Diagram Support Objects Cannot Be ...
In this article we look at how to resolve the error database diagram support objects cannot be installed because the database does not...
Read more >
Create a New Database Diagram - Visual Database Tools
In this article ... You can use Object Explorer to create new database diagrams. Database diagrams graphically show the structure of the database....
Read more >
Top 5 Free Database Diagram Design Tools (Updated)
dbdiagram.io is a quick, simple & free ER diagram tool to help you draw your database diagrams using their own Domain-specific language (DSL)....
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