r/SQL • u/Spiritual_Ganache453 • 3d ago
Discussion How practical are ERDs when coding?
It was my belief in the beginning of 2025 that this project would help ppl who work with databases. There were three main ideas I thought should be different from how it's been done for decades:
- There should be no proprietary syntax.
- ERDs must be rendered on the fly while coding (so no need for a separate tool or website)
- Cursor on a code segment must render that exact schema instantaneously (vs. rendering giant schemas all at once).
What's you perspective on this in 2026?
0
Upvotes
1
u/rbobby 3d ago
so long as you only need to see three tables at a time you should be good to go
1
u/vincent_sch 2d ago
The view that follows the cursor sounds useful for joins. If some tickets go missing when you join
ticketstousers, the diagram could show you thatassignee_idallowsNULL. When you match that to the user ID with an inner join, you don't get the tickets that have no assignee.1
u/Discordbothost 1d ago
A foreign key tells you which row can match, but the uniqueness constraint tells you whether a join can multiply rows. I'd show both in the cursor view. An orders-to-items join is a good test: one order with three items should make the one-to-many edge obvious.