Skip to content

holistics/dbml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

907fd33 · Jul 16, 2026

History

3,360 Commits
Jul 6, 2026
Jul 16, 2026
Jul 9, 2026
Jul 9, 2026
Jun 10, 2026
Jun 30, 2026
Aug 16, 2019
Aug 10, 2023
Aug 20, 2019
May 11, 2026
Feb 6, 2026
Jul 7, 2026
Jun 15, 2026
Apr 18, 2025
Feb 9, 2026
Jul 9, 2026

Repository files navigation

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

Community Contributions

About

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

Topics

Resources

License

Code of conduct

Contributing

Stars

3.7k stars

Watchers

37 watching

Forks

Packages

No packages published