relate: d75e2afd --CAUSES--> 1b71b163

This commit is contained in:
Cal Corum 2026-03-01 20:20:43 -06:00
parent b917d60173
commit a5889364cc
3 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,13 @@
---
id: 090ec7e1-c8fc-40f5-8d60-4b2aef56bcbd
type: CAUSES
from_id: d75e2afd-8348-4fe6-9ea1-731604505aa6
from_title: "Pattern: Parallel /simplify agents with isolated worktrees for large refactors"
to_id: 1b71b163-b56f-4226-9731-a76ef245e532
to_title: "Fix: sqlx in-memory SQLite pool requires max_connections=1"
strength: 0.9
created: "2026-03-02T02:20:43.812285+00:00"
updated: "2026-03-02T02:20:43.812285+00:00"
---
The parallel /simplify sweep's schema.rs agent wrapped create_tables() in a transaction for atomicity. This broke all 5 integration tests because in-memory SQLite with max_connections>1 gives each connection its own database — the transaction committed on one connection, but test queries ran on another that had no tables. Discovered and fixed by limiting in-memory pools to max_connections=1.

View File

@ -6,7 +6,7 @@ tags: [sba-scouting, rust, sqlx, sqlite, testing, fix, in-memory]
importance: 0.8
confidence: 0.8
created: "2026-03-02T02:08:46.895029+00:00"
updated: "2026-03-02T02:09:32.246976+00:00"
updated: "2026-03-02T02:20:43.812285+00:00"
relations:
- target: e5ec55be-ced4-4c30-8390-940b45dc2ed5
type: RELATED_TO
@ -33,6 +33,11 @@ relations:
direction: incoming
strength: 0.8
edge_id: 7d49db13-70e0-46d9-8707-fc0ddfe2df85
- target: d75e2afd-8348-4fe6-9ea1-731604505aa6
type: CAUSES
direction: incoming
strength: 0.9
edge_id: 090ec7e1-c8fc-40f5-8d60-4b2aef56bcbd
---
# sqlx In-Memory SQLite Pool: max_connections Must Be 1

View File

@ -6,7 +6,7 @@ tags: [sba-scouting, rust, claude-code, workflow, refactoring, parallel, worktre
importance: 0.6
confidence: 0.8
created: "2026-03-02T02:08:58.862746+00:00"
updated: "2026-03-02T02:09:35.007795+00:00"
updated: "2026-03-02T02:20:43.812285+00:00"
relations:
- target: 9e502d2b-bf95-4161-8190-ba153b9961d0
type: RELATED_TO
@ -33,6 +33,11 @@ relations:
direction: outgoing
strength: 0.8
edge_id: ec429a7a-f8ec-452e-a8ab-0defc5d5ca9f
- target: 1b71b163-b56f-4226-9731-a76ef245e532
type: CAUSES
direction: outgoing
strength: 0.9
edge_id: 090ec7e1-c8fc-40f5-8d60-4b2aef56bcbd
---
# Parallel /simplify with Isolated Worktree Agents