Airtable many-to-many linked records export as JSON arrays of rec... IDs or comma-joined primary field labels in CSV. Turning them into queryable SQLite tables requires normalized junction tables and PRAGMA foreign_keys = ON insertion order.
| Link Pattern | SQLite Breakage | Deterministic Fix |
|---|---|---|
| CSV display-name links | Airtable CSV exports write "Acme Corp, Beta LLC" instead of rec... IDs, causing silent ambiguity when two companies share a name. |
Flags duplicate or unresolvable text references with unresolved_fk_display_name in dry-run output. |
JSON rec... ID arrays |
Storing ["recOwner01","recOwner02"] as a flat string prevents indexed SQLite joins. |
Generates a junction table <table>_<field>_links plus JSON array preservation for lossless round-trip Merkle verification. |
| Broken child-first inserts | Inserting child links before parent rows fails under PRAGMA foreign_keys = ON. |
Topologically orders generated CREATE TABLE and INSERT blocks in the compiled Python script. |
curl -sS -X POST https://migrate.fastmesh.dev/v1/migrate \
-H "Content-Type: application/json" \
-d '{
"source_format": "airtable",
"target_format": "sqlite",
"table_name": "tasks",
"source_data": {"records": [{"id": "recTask01", "createdTime": "2026-12-01T08:00:00Z", "fields": {"Title": "Ship SQLite", "Assignees": ["recUserA", "recUserB"]}}]}
}'