Storage
Multi-engine persistent storage for CLI state: sqlite + postgres behind a consumer-scoped Store interface. CockroachDB rides the postgres wire protocol.
Decisions
byob-storage.1— Per-backend Store implementations; no query builder, no ORMbyob-storage.2— Two-field DB config: Driver + DSN, not a fused URLbyob-storage.3— Hand-rolled go:embed migration runner with per-migration transactionsbyob-storage.4— withTx(ctx, fn) helper with explicit commit/rollback branchingbyob-storage.5— Timestamps: audit fields in DDL, business-logic fields in Gobyob-storage.6— In-memory sqlite default; same Store contract suite runs on both backends