Database Markup Language (DBML), designed to define and document database structures
dbxdatabase-schemadbml
주요 지표
스타 성장
스타
3.7k
포크
226
주간 성장
—
이슈
91
1k2k3k
2019년 5월2020년 7월2021년 9월2022년 12월2024년 2월2025년 5월2026년 7월
아티팩트npmnpm install dbml
README
DBML - Database Markup Language
DBML (database markup language) is a simple, readable DSL language designed to define database structures.
For more information, please check out DBML homepage
Benefits
It is simple, flexible and highly human-readable
It is database agnostic, focusing on the essential database structure definition without worrying about the detailed syntaxes of each database
Comes with a free, simple database visualiser at dbdiagram.io
Also comes with a free database documentation app at dbdocs.io
Example
Example of a database definition of a simple blogging site:
Table users {
id integer
username varchar
role varchar
created_at timestamp
}
Table posts {
id integer [primary key]
title varchar
body text [note: 'Content of the post']
user_id integer
created_at timestamp
}
Ref: posts.user_id > users.id // many-to-one