Skip to main content

Ecosystem & Integrations

DBML is a plain-text, database-agnostic format, which makes it easy to build on. This page collects everything that speaks DBML: the apps and packages maintained by Holistics, the databases we support out of the box, and the projects the community has built.

Apps

Free tools that take a DBML file and do something useful with it.

Official packages

Open-source packages maintained in the holistics/dbml monorepo.

Database support

Which databases are supported across DBML's different capabilities.

DatabaseImport (SQL to DBML)Export (DBML to SQL)Connector
PostgreSQL
MySQL
MSSQL (SQL Server)
Oracle
Snowflake
BigQuery

Legend: ✓ = Supported, — = Not supported

Import (SQL to DBML)

Convert SQL DDL scripts to DBML format using @dbml/core.

const { importer } = require('@dbml/core');
const dbml = importer.import(sqlScript, 'postgres');

Export (DBML to SQL)

Generate SQL DDL scripts from DBML using @dbml/core.

const { exporter } = require('@dbml/core');
const sql = exporter.export(dbmlContent, 'postgres');

Connector

Connect directly to a live database and extract its schema using @dbml/connector.

const { connector } = require('@dbml/connector');
const schemaJson = await connector.fetchSchemaJson(connectionString, 'postgres');

Community projects

Parsers, editor plugins and generators built and maintained by the DBML community. These are third-party projects — they are not maintained or endorsed by Holistics.

PyDBMLPython

DBML parser and builder for Python.

by VanderhoofVanderhoof/PyDBML stars on GitHub
dbml-goGo

DBML parser and tools for Go.

by duythinhtduythinht/dbml-go stars on GitHub
dbml-javaJava

DBML parser for the JVM, written for Java 17.

by Nils Wendenilswende/dbml-java stars on GitHub
dbml-parserPHP

DBML parser for PHP 8.

by Butschsterbutschster/dbml-parser stars on GitHub
Ivy.Dbml.ParserC#

DBML parser for .NET.

by Niels BosmaIvy-Interactive/Ivy.Dbml.Parser stars on GitHub
Elixir DBMLElixir

Elixir parser for DBML, plus generators for Ecto schemas and migrations.

by saleynsaleyn/dbml stars on GitHub
tree-sitter-dbmlC

DBML grammar for tree-sitter — syntax highlighting and structural editing for any editor built on it.

by dynamotndynamotn/tree-sitter-dbml stars on GitHub
DBML for VSCode

Syntax highlighting and language support for DBML in Visual Studio Code.

by duynvu
DBML for JetBrains IDEs

DBML support for IntelliJ IDEA, PyCharm, DataGrip and the rest of the JetBrains family.

by LiamClarkeNZ
vim-dbmlVim Script

Syntax highlighting and filetype detection for DBML in Vim.

by jidnjidn/vim-dbml stars on GitHub
dbd-modeEmacs Lisp

Emacs major mode for editing DBML files.

by ccodccod/dbd-mode stars on GitHub
prisma-dbml-generatorTypeScript

Generate a DBML schema from your Prisma schema.

by Marc Stammerjohannnotiz-dev/prisma-dbml-generator stars on GitHub
schema_to_dbmlRuby

Ruby gem that generates DBML from a Rails schema.rb file.

by Ricardo Ribeiroricardojcribeiro/schema_to_dbml stars on GitHub
KacherPHP

Convert Laravel (Doctrine) database schemas to DBML.

by Arsanandha Aphisitworachorchaphisitworachorch/kacher stars on GitHub
DbmlForDjangoPython

Converter between Django models.py and DBML, in both directions.

by hamedsjhamedsj/DbmlForDjango stars on GitHub
FloorPlanKotlin

Render Android Room database schemas as ER diagrams via DBML.

by juliozjulioz/FloorPlan stars on GitHub
snowflake-dbml-generatorPython

Generate DBML from a Snowflake database, with configurable primary keys and relationship inference.

by Ryan Rozichryanrozich/snowflake-dbml-generator stars on GitHub
d365fo-entity-schemaC#

Visual Studio extension that generates DBML entity schemas from Dynamics 365 Finance & Operations.

by noakeseynoakesey/d365fo-entity-schema stars on GitHub
DB2CodeJava

Generate DBML (and other files) from JDBC metadata, via Maven.

by alberlaualberlau/DB2Code stars on GitHub
parse-server-SCHEMA-to-DBMLJavaScript

Convert a Parse Server MongoDB _SCHEMA collection into DBML to visualise relations between Parse classes.

by stepanicstepanic/parse-server-SCHEMA-to-DBML stars on GitHub
dbml-rendererJavaScript

CLI that renders a DBML file to an SVG diagram.

by softwaretechnik-berlinsoftwaretechnik-berlin/dbml-renderer stars on GitHub
dbmlgraphTypeScript

CLI that turns a DBML schema into LLM-ready markdown docs and a searchable knowledge graph.

by Verry Anto Paulusverryp/dbmlgraph stars on GitHub
Scafoldr

DBML-powered code scaffolding — generate application code from your schema.

by Scafoldr

Add your project

Built something that reads or writes DBML? We would love to list it.

  1. Add an entry to dbml-homepage/src/data/ecosystem.ts.
  2. Open a pull request against holistics/dbml.

Questions or ideas? Head to the issues page.