diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-21 09:47:50 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-21 11:01:07 +0200 |
| commit | b1956aa73a533702ccbc3d7713ea90dd5ae44b9b (patch) | |
| tree | 7d3d4c8db28cbe15cfdf916f74ea7d77a5666414 /AGENTS.md | |
| parent | e25a8c9ae70e5a310c1a82be55d0dbf58ba71250 (diff) | |
| download | bokf-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.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
