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
  • Comments will be removed

Related