Basics
SQL editor
Run SQL directly against your project database, with formatting and CSV/JSON export.
The SQL Editor runs queries directly against your project's Postgres database. Type a query, press Run Query (or Cmd+Enter), and results render in a table you can copy as CSV or JSON. A Format button tidies your SQL before running.
Safety and limits
- Read queries run inside a read-only transaction, so a SELECT can never modify data.
- Write queries are allowed but respect Cloud permissions. Prefer asking the agent for schema changes so they land as migrations.
- Results display up to 200 rows by default (500 maximum). Larger result sets are marked truncated; the query itself still ran in full.
- If you run multiple statements at once, only the last statement's result is shown.
Query errors appear inline in the results panel with the raw Postgres message, which you can paste straight into chat for a fix.