Playground/Database

DatabaseSQL over HTTP

database
Per-tenant SQLite (D1). One POST runs your query. Strongly consistent.

SQL playground

Ready
A pre-seeded demo_books table is waiting. Try the samples below or write your own SQL — this is real D1 SQLite, multi-statement allowed (no params), and reads are strongly consistent.
⌘/Ctrl+Enter to run · destructive ops on non-demo tables are blocked here

The actual call

POST/edge/database
{
  "query": "SELECT * FROM demo_books ORDER BY rating DESC;",
  "params": []
}
Strongly consistent. ? placeholders, INTEGER PRIMARY KEY AUTOINCREMENT, TEXT — SQLite, not Postgres.