dbml icon indicating copy to clipboard operation
dbml copied to clipboard

[bug] Project info missing when `DBML->JSON->DBML`

Open Airkro opened this issue 3 years ago • 0 comments

I make a prettier-plugin for DBML: https://github.com/nice-move/prettier-plugin-dbml

But I find out that project info will be missing when converting DBML to * and * to DBML.

const { exporter } = require('@dbml/core');

const string = `
Project project_name {
  database_type: 'PostgreSQL'
  Note: 'Description of the project'
}
`

exporter.export(string, 'dbml') // -> ''

Airkro avatar Sep 02 '22 08:09 Airkro