1.5 KiB
1.5 KiB
| id | type | title | tags | importance | confidence | created | updated | relations | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ad48fe50-12a6-4c65-a49c-3a691d75e03f | solution | Rust CSV importer integration tested — matches Python DB exactly |
|
0.7 | 0.8 | 2026-02-28T18:09:42.807948+00:00 | 2026-02-28T18:10:05.594987+00:00 |
|
Rust CSV importer integration tested — matches Python DB exactly
Context
The Rust CSV card importer (api/importer.rs) had unit tests for parse helpers but no integration test against real CSV data. The Rust DB previously had 0 cards because the importer had never been run against actual files.
Test Run
- Copied
BatterCalcs.csvandPitcherCalcs.csvtorust/docs/sheets_export/ - Ran
import_all_cards()against the Rust DB (rust/data/sba_scout.db)
Results
| Type | Cards Imported | Errors |
|---|---|---|
| Batter | 490 | 0 |
| Pitcher | 502 | 0 |
Identical to Python DB row counts. Sample values verified (Rutschman batter card, Ben Brown pitcher card).
Committed
CSVs committed to repo at rust/docs/sheets_export/.
Key Notes
- Default CSV paths are relative to
rust/cwd:docs/sheets_export/BatterCalcs.csvanddocs/sheets_export/PitcherCalcs.csv - The Rust app uses
rust/data/sba_scout.db(separate from Python'sdata/sba_scout.db)