Migrate-Anything
SQL DUMP ↔ SQLITE / POSTGRES

SQLite & SQL DDL + INSERT Schema Inference

Splitting SQL dumps on ; breaks the moment a string literal contains 'O''Brien; note' or a comment contains SQL keywords. Migrate-Anything uses a quote- and comment-aware SQL lexical scanner that preserves declared column affinity and topologically sorts foreign keys.

SQL Dump Migration Safeguards

SQL Dialect TrapFailure ModeMigrate-Anything Behavior
Semicolons & doubled quotes Regex/split parsers fracture INSERT tuples containing 'O''Brien; test'. Tracks single-quote escapes, double-quoted identifiers, and -- / /* ... */ comments lexically.
BOOLEAN vs TINYINT(1) Moving between SQLite (0/1) and Postgres (true/false) loses declared boolean affinity. Preserves DDL BOOLEAN declarations across both SQLite and Postgres target outputs.
Foreign-key ordering Out-of-order CREATE TABLE / INSERT blocks fail under PRAGMA foreign_keys = ON. Topologically sorts tables by FOREIGN KEY dependencies before emitting runnable Python scripts.

Migrate SQL Dump to Postgres or SQLite

curl -sS -X POST https://migrate.fastmesh.dev/v1/migrate \
  -H "Content-Type: application/json" \
  -d '{
    "source_format": "sql_dump",
    "target_format": "postgres_ddl",
    "table_name": "invoices",
    "source_data": "CREATE TABLE invoices (id INTEGER PRIMARY KEY, account_ref VARCHAR(64) NOT NULL, paid BOOLEAN NOT NULL, amount_cents BIGINT NOT NULL, note TEXT);\nINSERT INTO invoices (id, account_ref, paid, amount_cents, note) VALUES (1, '\''acct_01'\'', true, 7900, '\''O'\'''\''Brien; semi-colon test'\'');"
  }'
Test the SQL DDL+INSERT preset live
Inspect inferred types, standalone Python verifier, and Merkle receipt in 5 seconds.
Open 5s Try-Now Sandbox