Handler for SQL queries
Data Query
Handler for SQL queries
POST /query/sql
Body: { "sql": "SELECT ... FROM app::collection WHERE ..." }
The SQL query must use the "app::collection" format for table references,
which is equivalent to "schema.table" in standard SQL.
POST
Handler for SQL queries
Body
application/json
SQL Query Request
SQL query string Format: SELECT ... FROM app::collection WHERE ... Example: "SELECT name, age FROM myapp::users WHERE age > 18 ORDER BY name LIMIT 10"
Include all versions of records (history)
- true: Return all versions of each record (append-only mode)
- false (default): Return only latest version of each record (deduplicated by user-defined "id" field)
Response
SQL query executed successfully