Also available: Markdown version · llms.txt · full site content
Database
SQL editor
Inspect your database with one read-only SQL statement at a time. The editor is for reading; schema changes go through the Database screens — tables, policies, functions, triggers, indexes, types, and views.
The limits
| Rule | Value |
|---|---|
| Statements per run | Exactly one |
| Length | At most 8,000 characters |
| Allowed prefixes | select, with, explain, show, values, table |
| Transaction | Read-only, on the SQL role |
| Statement timeout | 3 seconds |
| Rows returned | At most 200; the response says when it was truncated |
Useful queries
SELECT plan, count(*) AS customers
FROM public.customers
GROUP BY plan
ORDER BY customers DESC;SELECT email, is_anonymous, email_verified_at, last_sign_in_at
FROM auth.users
ORDER BY created_at DESC
LIMIT 50;The SQL role can read the managed auth and logs schemas, so the editor is also how you inspect users, sessions, and request logs. The vault schema is not readable from it.
The response shape
{
"columns": ["plan", "customers"],
"rows": [{ "plan": "pro", "customers": 2 }],
"truncated": false,
"rowCount": 2,
"durationMs": 4,
"readOnly": true,
"maxRows": 200
}