Skip to main content
Products -> ERDPricingDocsBlogSign in한국어Start with ERD

Import & Export

Ainecto reads and writes several common formats so you can move schemas in and out without lock-in.


SQL Import

Paste a CREATE TABLE script and Ainecto parses it into tables, columns, indexes, and foreign keys.

Supported dialects:

  • MySQL / MariaDB
  • PostgreSQL
  • Oracle
  • SQL Server

How to use:

  1. Open or create a diagram
  2. Choose Import → SQL from the diagram menu
  3. Paste your DDL
  4. Review the preview, then Import

The import is batch-based — all tables, columns, indexes, and refs are committed atomically. A version snapshot is created automatically with the description "Imported from SQL".

SQL import is gated by plan. Free tier has a limited number of imports; paid tiers have no limit.

What gets parsed

ElementImported?
CREATE TABLE (columns, types, constraints)
Primary keys
Unique constraints
Foreign keys (REFERENCES)
Indexes (CREATE INDEX, KEY ...)
Default values
CHECK constraintsPartial (display only)
Triggers, stored procedures, viewsNot imported

If parsing fails on a specific statement, the importer reports the line and continues with the rest. You can fix the source and re-import.


DBML Export

DBML (Database Markup Language) is a clean text format for ERDs. Ainecto can export the current diagram as DBML:

GET /api/diagrams/{uuid}/dbml

In the app, use Export → DBML from the diagram menu.

DBML round-trips well with other tools like dbdiagram.io.


SQL Export

Generate CREATE TABLE statements for the current diagram in your chosen dialect:

  • MySQL / MariaDB
  • PostgreSQL
  • Oracle
  • SQL Server

Use Export → SQL and pick the dialect. The output respects column order, indexes, and foreign keys.


Image Export

For sharing in slides or docs:

FormatUse case
PNGEmbedding in docs, Slack, Notion, etc.
SVGCrisp scaling for presentations and print

Both export the current canvas viewport (or the full diagram, your choice). Use Export → PNG or Export → SVG.


Round-trip workflows

A common workflow:

  1. Import an existing production schema with SQL Import
  2. Refine the diagram visually or via AI
  3. Generate migrations by exporting SQL and diffing against the original

Or for greenfield projects:

  1. Use Natural Language → ERD to bootstrap
  2. Refine on the canvas
  3. Export SQL for your migration tool of choice