claude-memory/graph/decisions/sba-scout-rust-two-separate-databases-for-rust-vs-python-app-71261e.md
2026-02-28 12:10:05 -06:00

40 lines
1.5 KiB
Markdown

---
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:10:05.594987+00:00"
relations:
- target: ad48fe50-12a6-4c65-a49c-3a691d75e03f
type: RELATED_TO
direction: incoming
strength: 0.85
edge_id: 594e81c0-2c76-4412-8513-157d7daa92e3
---
# 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.