{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/singlestore/main/json-schema/singlestore-query-request-schema.json", "title": "QueryRequest", "description": "Request body for executing a SQL SELECT statement and returning a result set.", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/singlestore-queries-api-openapi.yml#/components/schemas/QueryRequest", "type": "object", "required": [ "sql" ], "properties": { "sql": { "type": "string", "description": "The SQL SELECT statement to execute. Any valid SingleStore SQL SELECT syntax is supported." }, "database": { "type": "string", "description": "Name of the database to query. If not provided, the default database for the authenticated user is used." }, "args": { "type": "array", "description": "Positional arguments for parameterized SQL queries. Use ? placeholders in the sql field and provide values in order here.", "items": {} } } }