Importing into EntityFlow
You don't have to start from scratch. EntityFlow can build a diagram from a blank canvas, a pasted query result, a schema file, or a live database connection. Choose the path that matches what you already have.

Ways to bring a schema in
- Start empty — open the New diagram wizard, pick a target engine, and design tables by hand.
- Import from a query — paste the JSON result of an introspection query into the wizard. No credentials leave your machine. See Import from a query.
- Import DBML — paste or upload a
.dbmlfile and EntityFlow parses tables, fields, enums and references. See Import DBML. - Import JSON — load a previously exported EntityFlow diagram for a lossless round-trip. See Import JSON.
- Connect to a database — read the schema directly from PostgreSQL, MySQL/MariaDB, SQL Server, Supabase or SQLite, and keep it in sync. See Connect to a database and Sync with a database.
What each path does to your diagram
:::warning Imports replace the current diagram Importing DBML or JSON discards the diagram you're looking at and rebuilds it from the file. Export or duplicate first if you want to keep your current work. :::
:::info Connecting is read-only Connecting to a database never modifies it. EntityFlow only reads the schema to draw your diagram — it never writes back unless you explicitly run a generated migration yourself. :::
| Path | Source | Replaces diagram? | Touches your database? |
|---|---|---|---|
| Empty | — | New diagram | No |
| Import from query | Pasted JSON | New diagram | No |
| Import DBML | .dbml file/text | Yes | No |
| Import JSON | EntityFlow JSON | Yes | No |
| Connect to database | Live connection | New diagram | Read-only |