{"ok": true} on row API, to be consistent with table

This commit is contained in:
Simon Willison 2025-12-12 21:43:00 -08:00
commit 3b4c7e1abe
2 changed files with 2 additions and 0 deletions

View file

@ -95,6 +95,7 @@ class RowView(DataView):
}
data = {
"ok": True,
"database": database,
"table": table,
"rows": rows,

View file

@ -710,6 +710,7 @@ async def test_invalid_custom_sql(ds_client):
async def test_row(ds_client):
response = await ds_client.get("/fixtures/simple_primary_key/1.json?_shape=objects")
assert response.status_code == 200
assert response.json()["ok"] is True
assert response.json()["rows"] == [{"id": 1, "content": "hello"}]