Skip to main content

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.

New diagram wizard

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 .dbml file 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. :::

PathSourceReplaces diagram?Touches your database?
Empty—New diagramNo
Import from queryPasted JSONNew diagramNo
Import DBML.dbml file/textYesNo
Import JSONEntityFlow JSONYesNo
Connect to databaseLive connectionNew diagramRead-only