Skip to content
项目

holistics/dbml has 3,725 GitHub stars and 238 forks. GitHot measured +1 stars in 24 hours and +1 in 7 days. Last checked 2026-11-12 10:53 UTC. Last push 2026-11-02.

这些数字如何统计

Database Markup Language (DBML), designed to define and document database structures

实测星标增长

24小时
+1
7天
+1
15天
更新延迟
1个月
更新延迟

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

DBML - Database Markup Language

Build Status npm @dbml/core npm @dbml/core downloads npm @dbml/cli npm @dbml/cli downloads

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

Community Contributions

The community maintains DBML parsers, editor plugins and schema generators across many languages. See the full, categorised list on the DBML Ecosystem page.

Built something that reads or writes DBML? Add it to dbml-homepage/src/data/ecosystem.ts and open a pull request.

探索相关项目