summaryrefslogtreecommitdiff
path: root/AGENTS.md
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-21 09:47:50 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-21 11:01:07 +0200
commitb1956aa73a533702ccbc3d7713ea90dd5ae44b9b (patch)
tree7d3d4c8db28cbe15cfdf916f74ea7d77a5666414 /AGENTS.md
parente25a8c9ae70e5a310c1a82be55d0dbf58ba71250 (diff)
downloadbokf-b1956aa73a533702ccbc3d7713ea90dd5ae44b9b.tar.gz
bokf-b1956aa73a533702ccbc3d7713ea90dd5ae44b9b.zip
commands: db_row_json and db_exec_bound helpers
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md4
1 files changed, 4 insertions, 0 deletions
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