Live data from Hacker News

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

dbml-lang.org

11–17 of 17 posts

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

#12
post #2

OP here. Sharing a bit of history on DBML. 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. 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…

You really sell that well in your link, telling me just why it's useful compared to DDL and giving useful tools.

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

#13
post #9
post #5

Very nice! So do you plan to support other dbs? Sqlite would be nice.

Yes we do. SQLite is in the roadmap. Although it’s database-agnostic, we do realize that a lot of the use cases is about generating database-specific SQL based on DBML code. So we’re working on introducing dialects to the syntax so that it closely resembles specific DB better (e.g this DBML is of MySQL dialect).

That's exactly what i was wondering. DBML should totally be agnostic so i could use with any DB i wish.

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

#15
post #9

Earlier quoted context omitted.

Yes we do. SQLite is in the roadmap. Although it’s database-agnostic, we do realize that a lot of the use cases is about generating database-specific SQL based on DBML code. So we’re working on introducing dialects to the syntax so that it closely resembles specific DB better (e.g this DBML is of MySQL dialect).

That's exactly what i was wondering. DBML should totally be agnostic so i could use with any DB i wish.

I meant the CLI tools listed on the site that let you roundtrip between dbml and actual sql dialect (currently looks like pgsql & mysql are supported)

I guess my original query could've been clearer - but the author got my drift :)

Post reply on HN