Skip to content
Database Markup Language (DBML), designed to define and document database structures
JavaScript TSQL Ruby Other
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github chore: add PR template Aug 16, 2019
dbml-homepage Merge branch 'master' of github.com:holistics/dbml Sep 16, 2019
packages v1.1.3 Oct 10, 2019
test update tests for dbml-cli Aug 28, 2019
.eslintrc.json build: init monorepos Aug 15, 2019
.gitignore docs(dbml-homepage): change CLI docs and add JS Module section (#23) Aug 28, 2019
.travis.yml chore: change to use lerna bootstrap Aug 29, 2019
CHANGELOG.md Update CHANGELOG.md v1.1.3 Oct 10, 2019
CODE_OF_CONDUCT.md chore: add CODE_OF_CONDUCT and repos in package.json Aug 16, 2019
CONTRIBUTING.md Create CONTRIBUTING.md Aug 31, 2019
LICENSE Update LICENSE company name Aug 20, 2019
README.md Merge branch 'master' of github.com:holistics/dbml Sep 16, 2019
babel.config.js add ci Aug 22, 2019
lerna.json v1.1.3 Oct 10, 2019
package.json

README.md

DBML - Database Markup Language

Build Status

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

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

You can’t perform that action at this time.