{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/saturnsql-com/json-schema/saturnsql-com-query-result-schema.json",
  "title": "QueryResult",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/saturnsql-com-openapi.yaml#/components/schemas/QueryResult",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "result": {
      "type": "object",
      "properties": {
        "rows": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "fields": {
          "type": "array",
          "description": "Column descriptors. `name` and `dataTypeID` are always present; the driver may include additional fields (e.g. dataTypeSize, format, tableID) which are safe to ignore.",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "dataTypeID": {
                "type": "integer"
              }
            },
            "additionalProperties": true
          }
        },
        "rowCount": {
          "type": "integer"
        },
        "command": {
          "type": "string"
        },
        "duration": {
          "type": "integer",
          "description": "Execution time in ms"
        },
        "truncated": {
          "type": "boolean",
          "description": "True when rows/cells were capped to fit the memory budget."
        }
      }
    }
  }
}