Skip to content

nice-move/prettier-plugin-dbml

Repository files navigation

prettier-plugin-dbml

A Prettier plugin for DBML.

npm github node

Examples

Table buildings {
  address varchar(255) [unique, not null, note: 'to include unit number']
  id integer [ pk, unique, default: 123 ]
}

Installation

npm install prettier-plugin-dbml --save-dev

Usage

prettier --write *.dbml

Known Issues

  • Project Definition will be removed, see: holistics/dbml#285
  • All String can't include single quotes
  • All fields will be wrapped in double quotes
  • Comments will be removed

Related