Repository navigation
Closed
Labels
Description
Drives docs/audits/import.md
Critical (P0/P1)
- F1 [P0] [doc-drift] ARCHITECTURE 5.5 declares import_data, preview_import, export_data Rust commands — none exist — [P0][doc-drift] ARCHITECTURE 5.5 declares import_data, preview_import, export_data Rust commands — none exist #363
- F2 [P0] [security] CSV import uses string interpolation (escapeValue); no parameterized inserts — [P0][security] CSV import uses string interpolation (escapeValue); no parameterized inserts #364
- F3 [P1] [bug] SQL import runs serially; one failed statement aborts rest when stopOnError=true — [P1][bug] SQL import runs serially; one failed statement aborts rest when stopOnError=true #365
- F4 [P1] [bug] CSV import has no row-size cap or file-size cap; parseCSV on 10 GB file hangs renderer — [P1][bug] CSV import has no row-size cap or file-size cap; parseCSV on 10 GB file hangs renderer #366
- F5 [P1] [ux] Preview pane doesn't warn about destructive statements (DROP/TRUNCATE/DELETE) — [P1][ux] Preview pane doesn't warn about destructive statements (DROP/TRUNCATE/DELETE) #367
Backlog (P2/P3)
- F6 [P2] [ux] CSV column-type inference silently picks TEXT for everything; no UI to specify types
- F7 [P2] [bug] CSV import treats whitespace-only cells as strings not NULL; violates FR-8.4
- F8 [P3] [test] No CSV-import roundtrip test
Good
- RFC 4180 CSV parser with doubled-quote escapes; DELIMITER-aware SQL splitter; column-mapping UI before insert; preview rows before commit; per-statement error rollup; stopOnError toggle; insertBatchSize knob for max_allowed_packet
Activity
EVWorth commentedon Sep 12, 2026
Import is clear.
The P0/P1s
import_data/preview_import/export_datasql-quoteone, with its own tests. Worth noting what the same class of bug turned out to be elsewhere — the backup generator's\\'was a reproduced injection (#650),,is NULL and,"",is''What changed since the audit was written
SQL import and restore were the same operation with two implementations. #654 merged them: a SQL file now goes through
restore_database, which reads it in chunks, splits it in Rust and runs it on one connection. The renderer reads the first 512 KB, for the preview and the destructive-statement list, and says when the scan did not reach the end rather than reporting "3 statements" for a two-gigabyte dump.The backlog
Nothing from this audit is outstanding.