datasette/datasette/views
Claude ea9c1b1524
Return 400 for query data formats when ?sql= is missing
GET /db/-/query.json with no (or blank) ?sql= previously returned 200
with empty rows, masking caller bugs, while the .csv format returned
400 "?sql= is required" for the same request. All data formats now
return the 400; the HTML SQL editor page is unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
2026-07-04 15:39:11 +00:00
..
__init__.py Use dataclasses for database table context 2026-06-23 12:11:26 -07:00
base.py Unify JSON error responses into one canonical shape 2026-07-04 03:12:15 +00:00
database.py Return 400 for query data formats when ?sql= is missing 2026-07-04 15:39:11 +00:00
execute_write.py Add create table execute-write template (#2794) 2026-06-19 17:14:33 -07:00
index.py Add "ok": true to every JSON object success response 2026-07-04 13:40:05 +00:00
query_helpers.py Fix write query failing when a named parameter is called :sql (#2765) 2026-06-10 20:15:03 -07:00
row.py Return 400 instead of 500 for row delete write failures 2026-07-04 14:55:41 +00:00
special.py Filter /-/databases by view-database permission 2026-07-04 14:00:42 +00:00
stored_queries.py Web UI to edit and delete stored queries (#2764) 2026-06-08 20:19:47 -07:00
table.py Add "ok": true to every JSON object success response 2026-07-04 13:40:05 +00:00
table_create_alter.py current_unixtime and current_unixtime_ms default_expr options 2026-06-22 13:42:35 -07:00
table_extras.py Expand template context field documentation 2026-06-23 07:30:04 -07:00