Paganel

Data migration engine that verifies the destination down to the row

Image 1 of 2: Terminal: verify reports a mismatch in actor after a hand-edited row, naming actor_id=5, while payment matches

A Rust engine that moves schema and data between MySQL, PostgreSQL and CSV from one declarative PPL file, with transforms, FK graph expansion, parallel key-range lanes and crash-safe checkpoints. Merkle receipts built while writing let verify name a changed row later.

  • ~390K rows/sMySQL→PG, 1 lane
  • ~940K rows/sMySQL→PG, 4 lanes
  • ~670K rows/s4 lanes, with receipts
  • ~170K rows/spgloader, same run

Trade-offs

  • Recovery is at-least-once per batch: a crash between the destination commit and the WAL append rewrites one batch, idempotent with a primary key and on_conflict, duplicated without a key.
  • Receipts are built while writing, so verify needs no source connection and keeps a 32-byte root per table, at a throughput cost: ~940K rows/s drops to ~670K on four lanes.
  • Migrations are a parsed DSL rather than passed-through SQL, which lets plan show the blast radius first; before 1.0 the language still changes between commits.

Q&A4

It re-reads the destination and checks it against the Merkle receipt recorded during the write. A mismatch is reported by primary key, as missing, changed or extra rows, not just as a count.

Reviews

Loading reviews

    More in Migrations

    See all 7 →
    • MigrationPilotPostgreSQL migration linter that blocks unsafe DDL before merge
    • pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
    • FlydbVersioned database migrations with a local GUI, a CLI and agent hand-off
    • pgmoldPostgreSQL schema-as-code in plain SQL, with safety linting and drift checks
    • dbconformFinds and repairs drift between a SQL database and its SQLAlchemy models
    • terradbDeclarative schema management for PostgreSQL and SQLite

    More in Database internals

    See all 29 →
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • SNKVEmbedded key-value store built directly on SQLite's B-tree
    • RuvioRust key-value server that speaks RESP, with locks and queues as commands
    • musqlSQLite-compatible SQL engine on columnar storage and a JIT
    • EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads
    • MongrelDBEmbedded Rust database with vector, sparse and text indexes

    More in Data engineering

    See all 13 →
    • StreambedPostgres-to-Iceberg CDC engine with a built-in Postgres wire query server
    • DuckpadVisual DuckDB pipelines that trace a number back to its source
    • Global News Intel PlatformServerless pipeline over world news events, run at zero cost
    • LoomFlowSelf-hosted visual ETL on Polars and React Flow
    • wiki-geoparquetEvery geotagged English Wikipedia article as open GeoParquet
    • SyncleKeeps databases in sync across engines in real time, without Kafka