# Competitor → Veloce migration (2.73.98 migrate-bridge)

VeloceDB **natively mounts only** `testdb.bin` (+ idx / recno / meta / pgw-pk) on TCP **1583** and **2143**. Every competitor path below is **import-on-attach** into testdb keys (`attach.<TABLE>.<key>` or source keys for JSONL WAL). `nativeBinary=false`. `certifiedClaim=false`. analog ≠ native.

## CLI

```bash
veloce migrate catalog [--json]
veloce migrate plan s3://bucket/dump.sql [--json]
veloce migrate from postgresql ./pg-plain.sql --dir ./data --table SKU_MOVE
veloce migrate from mysql ./mysqldump.sql --dir ./data
veloce mount ./customers.csv --table CUSTOMERS   # auto-sniff (same importer)
veloce mounts --dir ./data
```

## SQL + HTTP (operator port 8098)

- `SHOW MIGRATE` — JSON catalog (engines, formats, honest refuse list).
- `GET /api/v1/migrate` — same catalog.
- `GET /api/v1/mount` — attach catalog + import URL hint.
- `POST /api/v1/migrate/plan` — body `{ "uri": "...", "engine": "postgresql" }`.
- `POST /api/v1/migrate/import` — body `{ "uri", "engine?", "table?", "dryRun?" }` writes under the workgroup data dir.

## Supported import families

| Competitor | Bring this file | Veloce command |
|------------|-----------------|----------------|
| PostgreSQL | `pg_dump` **plain** SQL (not `-Fc`) | `migrate from postgresql dump.sql` |
| MySQL / MariaDB | `mysqldump` plain `.sql` with `INSERT INTO` | `migrate from mysql dump.sql` |
| SQLite / GPKG | `.sqlite` / `.gpkg` | `mount app.sqlite --table ITEMS` |
| Redis | Export to **JSONL** or CSV first | `mount keys.jsonl` |
| SQL Server | **CSV** per table (`bcp`, SSMS) | `mount rows.csv` |
| Oracle | **CSV** (not Data Pump `.dmp`) | `mount rows.csv` |
| MongoDB | `mongoexport` JSONL | `mount docs.jsonl` |
| Btrieve / Zen | `.DAT` / `.DBF` analog | `mount ledger.DAT` |

## Refused (with teaching, not native mounts)

- Postgres `PGDATA` directory, `pg_dump -Fc`, Redis RDB/AOF, SQL Server BAK/MDF, Oracle Data Pump, Parquet (this cut), DuckDB files.

## After import

- Query with SQL on **2143** (`SELECT` / `GET` / joins on JSON rows).
- Snapshot with `veloce backup` or `BACKUP TESTDB` (testdb snapshot, not a PG dump).
- Enterprise HA ships WAL from primary; large imports on primary should run during a maintenance window or with replica catch-up (`SET SHIP SYNC ON` drains the ship queue).

## Workbench

Free **Migration planner** desk at `/tools/migrate-planner` (browser-only sniff helper; files stay in the tab). Paid engine import runs on the host via `veloce migrate` or Control Center HTTP.
