Entity relationship diagram
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with a design pass covering PostgreSQL and MySQL catalog metadata, and decide how diagrams for schemas with hundreds of tables stay readable. Then map declared foreign keys into a schema graph and define the selected table’s neighbourhood view, keyboard and mouse navigation, table opening, and Mermaid and D2 exports. Done means the design and the listed graph, neighbourhood, export, and documentation work are complete; schema editing is out of scope.
Written by the indexing model from the issue text.
Description
Summary
See how the tables of a schema relate to each other without leaving the terminal: a relationship diagram for a whole schema, and a smaller view of the tables directly connected to the one you are looking at.
Scope
In:
- A relationship graph per schema, built from catalog metadata only (no table reads)
- A neighbourhood view: the selected table and the tables linked to it, with the columns that link them
- Moving through the diagram by keyboard and mouse, and opening a table from it
- Export of the full diagram as text (Mermaid and D2), since a large schema does not fit on a terminal screen
Out (for now): editing the schema from the diagram.
Design notes
- Declared foreign keys are the base of the graph.
- Links inferred from naming and types (
<table>_idto<table>.id, with matching column types) may be added, always marked as inferred and open to confirmation, never shown as if declared. - The same graph can serve going to a table through a foreign key (#324).
- A design pass comes first, covering PostgreSQL and MySQL together, including how a schema with hundreds of tables stays readable.
Related
- Design
- Relationship graph (PostgreSQL and MySQL)
- Neighbourhood view
- Full schema diagram and text export
- Docs
- Dominant language
- Rust
- Stars
- 166
- Forks
- 8
- Avg merge
- 4h 24m
- Merged PRs (30d)
- 291
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DokaDev/datarig
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
DokaDev/datarig#544 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 Half a day Newbie friendliness 55/100
Maintainers usually reply within 1 day
Similar issues
-
bug P2: medium
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
tests
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vfarcic/dot-agent-deck#2512 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
pop-os/cosmic-applets#1641 ·
Maintainers usually reply within 3 days