From b1956aa73a533702ccbc3d7713ea90dd5ae44b9b Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Mon, 21 Sep 2026 09:47:50 +0200 Subject: commands: db_row_json and db_exec_bound helpers Co-Authored-By: Claude Opus 5 --- AGENTS.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 5e206ee..f28a904 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -65,6 +65,10 @@ Never rewrite ledger rows in a migration. C11, no comments unless the reason is non-obvious, static helpers, no VLAs. Bounded buffers with `snprintf`, check every `sqlite3_step`, free what you allocate with a clear owner. Warnings must be zero (`-Wall -Wextra …`). +New handlers use the `cmd_util` helpers instead of hand-written +prepare/bind/step/column/finalize: `db_row_json` (column spec → object), +`req_list` (bound SELECT → `{items:[…]}`), `req_exec`/`db_exec_bound` (bound +INSERT/UPDATE/DELETE with the standard error codes), `db_prepare_bound`. User-visible server messages are English; the TUI is Swedish. ## TUI work -- cgit v1.3