Command-line -f/-t/-d bulk import
Exact CLI import stdout is a team convention matching LOAD; validate against course wrapper invocation. No SQL text is needed for this startup mode.
Contract
| Field | Value |
|---|---|
| Specification | IMPORT-002 |
| Module | frontend |
| Scope | Required implementation or delivery |
| Milestone | M2, due 2026-12-20 |
| Owner role | SQL / frontend — teammate to claim |
| Implementation | Planned; scaffold only |
| Contract review | Team review required before implementation |
Interface
CLI -> Importer.load(database, table, path)
These are proposed C++ design contracts, not an already implemented API. Shared types and ownership define the intended module boundaries.
Dependencies
- CLI-001: CLI options, init and clean shutdown
- IMPORT-001: LOAD DATA INFILE and streaming CSV importer
Acceptance checklist
- Support ./dbs -b -d demo -t people -f path.csv
- Route to IMPORT-001, not a second ingestion implementation
- Verify count, process exit, reopen and identical resulting rows
Input
./dbs -b -d demo -t people -f /mnt/data/people.csv
Expected output
rows
2
@
Where no ORDER BY appears, row order is not guaranteed. Error message text is illustrative; required diagnostic keywords and result framing are binding.
Rejections and state
- Incomplete -f/-t/-d combination -> clear error and nonzero status
Verification
Completion rule
Link this spec and its GitLab issue in an MR into develop. Include relevant Linux evidence, obtain the other teammate’s review, merge, delete the feature branch, and close the issue. A page describes intended behavior; the GitLab issue and merged code determine completion.