Diagrams

DBML Renderer

Quick start
Diagram

The diagram is drawn in your browser. Your code is not stored unless you click "Share with preview" yourself.

DBML is compact to write and hard to read. Paste your schema and immediately see which tables exist, which keys they carry and how they relate.

What people use this for

  • Table name { ... } — a table with columns
  • id integer [pk] — primary key
  • email varchar [unique] — unique value
  • Ref: orders.customer_id > customers.id — many-to-one
  • Ref: a.id - b.a_id — one-to-one
  • Ref: a.id <> b.a_id — many-to-many

What others think of this tool

No reviews for this tool yet. Yours would be the first.

Frequently asked questions

What is DBML?

Database Markup Language: a compact text notation for describing database schemas. Easy to write and version, but hard to grasp without a picture — which is what this tool is for.

Is my schema stored?

No. Your DBML goes to our server to be converted and is discarded immediately; we do not keep it and do not log its contents. Only when you click 'Share with preview' yourself do we store the schema to create a shareable link.

Why do I see an error with a line number?

The parser reports where it gets stuck. Usually a missing brace, or a Ref pointing at a table that is not in the schema.

Why don't I see all my tables?

Beyond sixty tables an ER diagram becomes unreadable and slow. We then show the first sixty and say so explicitly above the diagram — we never truncate silently.

Which relationship types are drawn?

All four DBML forms: many-to-one (>), one-to-many (<), one-to-one (-) and many-to-many (<>). Cardinality is visible at the ends of each connecting line.