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

1.5 KiB

id type title tags importance confidence created updated relations
71261e95-805e-44a0-8ee2-4a0f683dbc1f decision SBA Scout Rust: two separate databases for Rust vs Python apps
sba-scout
rust
database
architecture
sqlite
migration
0.65 0.8 2026-02-28T18:09:49.826680+00:00 2026-02-28T18:10:05.594987+00:00
target type direction strength edge_id
ad48fe50-12a6-4c65-a49c-3a691d75e03f RELATED_TO incoming 0.85 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.