Task: Audit for uses of raw libpq
This page documents a task in the sqlgen improvements story. It captures the goal, current status, acceptance, and any notes or results.
Goal
Sweep the codebase for raw libpq escapes (Claude has a habit of sneaking these in) and route everything through ores.database.
Status
| Field | Value |
|---|---|
| State | DONE |
| Parent story | sqlgen improvements |
| Now | Completed 2026-02-01. |
| Waiting on | None. |
| Next | None. |
| Last touched | 2026-02-01 |
Acceptance
- All raw-libpq sites identified.
- Code moved into
ores.databasewhere appropriate. - Remaining gaps raised as upstream sqlgen tickets.
Plan
Captured during execution; cleared into the parent story on close.
Notes
Particularly attentive on bitemporal operations — that's where the temptation is highest.
Result
Audit done; tickets filed against sqlgen for the gaps.