TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: DBML – simple DSL language to document database schemas

57 pointsby huyover 5 years ago

6 comments

huyover 5 years ago
OP here. Sharing a bit of history on DBML.<p>Originated from dbdiagram.io, a simple tool that we built to help you draw ER diagram by using writing code [1]. We shared that project on HN about a year back. Since then it has been growing organically and reach over 80k users.<p>When we launched, what our users like most about that tool is the ability to write simple DSL language and get the chart visualized. Then over time, we started to see our users using that DSL language to document their internal database structure (without the necessary need to visualize it). They were using it as a database documentation&#x2F;definition language.<p>Realized this is something we can add more value to the community, DBML was then born as a simple language to help you design, document and communicate your database structure with other developers. DBML is also open-sourced and would welcome contributions [2].<p>Basically with DBML you can: - Have a simple db.dbml file to document your database schemas, with proper context and descriptions - Your dbml file becomes the central source of truth of your database definition - Using simple CLI command to generate SQL creation file from DBML<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18066881" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18066881</a><p>[2] <a href="http:&#x2F;&#x2F;github.com&#x2F;holistics&#x2F;dbml" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;holistics&#x2F;dbml</a>
评论 #20858795 未加载
评论 #20857033 未加载
评论 #20864051 未加载
LandRover 5 years ago
Is the name going to cause confusion with Microsofts DBML in .NET?<p>They are both database tooling?
评论 #20865206 未加载
jonathanleekover 5 years ago
Any chance we could get syntax support in Sublime Text?
tole42over 5 years ago
I really like the connected database visualiser (dbdiagram.io)
rraghurover 5 years ago
Very nice! So do you plan to support other dbs? Sqlite would be nice.
评论 #20862868 未加载
评论 #20861428 未加载
poutaover 5 years ago
How does this handle migrations?
评论 #20863524 未加载