Execute SQL via driver (gateway alias)
Same request body and behavior as `POST /query/sql`. Provided for SDKs that target a `/gateway/*` prefix.
Request Body
application/json
"athena" | "postgresql" | "supabase"Response Body
application/json
curl -X POST "https://athena-cluster.com/gateway/sql" \ -H "Content-Type: application/json" \ -d '{ "query": "string", "driver": "athena", "db_name": "string" }'{}Execute a Postgres function as RPC POST
Invokes `schema.function(arg => ...)` on the pool selected by `X-Athena-Client`. Requires API key with right `gateway.rpc.execute`. Success responses return **`{"data": [...], "count": ...}`** (not the usual `status`/`message` envelope). Rows are JSON objects keyed by selected columns.
Fetch or update data using a SQLx client (same payload as /gateway/fetch) POST
Applies updates to rows matching supplied conditions. Payload shape mirrors fetch-style condition blocks so callers can reuse filtering logic between read and write flows. Supports optional post-processing fields for response shaping where applicable.