diff --git a/graph/decisions/sba-scout-rust-two-separate-databases-for-rust-vs-python-app-71261e.md b/graph/decisions/sba-scout-rust-two-separate-databases-for-rust-vs-python-app-71261e.md new file mode 100644 index 00000000000..b997bc96e8d --- /dev/null +++ b/graph/decisions/sba-scout-rust-two-separate-databases-for-rust-vs-python-app-71261e.md @@ -0,0 +1,33 @@ +--- +id: 71261e95-805e-44a0-8ee2-4a0f683dbc1f +type: decision +title: "SBA Scout Rust: two separate databases for Rust vs Python apps" +tags: [sba-scout, rust, database, architecture, sqlite, migration] +importance: 0.65 +confidence: 0.8 +created: "2026-02-28T18:09:49.826680+00:00" +updated: "2026-02-28T18:09:49.826680+00:00" +--- + +# SBA Scout Rust: two separate databases for Rust vs Python apps + +## Decision + +The Rust rewrite maintains its own independent SQLite database, separate from the Python app. + +| App | DB Path | Size (approx) | +|--------|-------------------------------|-------------------| +| Python | `data/sba_scout.db` | 1.7 MB (full) | +| Rust | `rust/data/sba_scout.db` | 491 KB (initial, grows after import) | + +Both paths are relative to the repo root. The Rust app's `config.rs` defaults `db_path` to `data/sba_scout.db` relative to `cwd`, which resolves to `rust/data/sba_scout.db` when running from the `rust/` directory. + +## CSV Import Paths (Rust) + +Default paths (relative to `rust/` cwd): +- `docs/sheets_export/BatterCalcs.csv` +- `docs/sheets_export/PitcherCalcs.csv` + +## Rationale + +The Rust rewrite is being developed on a separate branch (`feat/rust-rewrite`) and needs its own DB so development and testing don't interfere with the production Python app data.