mirror of
https://github.com/simonw/datasette.git
synced 2026-07-10 09:34:35 +02:00
Row update return:true responds with rows list, matching insert/upsert
Row update previously returned a singular "row" object where insert and upsert return a "rows" list. All write endpoints now use "rows". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
This commit is contained in:
parent
6488b7a30e
commit
b09dceea88
7 changed files with 40 additions and 13 deletions
|
|
@ -958,8 +958,8 @@ does not change the SQLite schema.
|
|||
`"Invalid keys: ..."`; write failures (bad column, constraint violation) →
|
||||
400 with the message.
|
||||
- **Response** — 200 `{"ok": true}`; with `return: true`,
|
||||
`{"ok": true, "row": {...}}` (singular `row`, unlike insert/upsert's
|
||||
`rows`). Emits `update-row`.
|
||||
`{"ok": true, "rows": [{...}]}` — a single-item list, matching
|
||||
insert/upsert. Emits `update-row`.
|
||||
|
||||
### POST /\<database\>/\<table\>/\<pks\>/-/delete
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue