{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-src-app-endpoints-admin-submit-sql-query-response-schema.json",
  "title": "SyncQueryResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-admin-api-openapi.yml#/components/schemas/src__app__endpoints__admin__submit_sql_query__Response",
  "properties": {
    "execution_time_ms": {
      "type": "integer",
      "title": "Execution Time Ms",
      "description": "The time taken to execute the query in milliseconds."
    },
    "result": {
      "items": {
        "items": {},
        "type": "array"
      },
      "type": "array",
      "title": "Result",
      "description": "The result of the query as a list of rows, where each row is a list of column values."
    },
    "truncated": {
      "type": "boolean",
      "title": "Truncated",
      "description": "Whether the result was truncated due to the row limit."
    },
    "columns": {
      "items": {
        "$ref": "#/$defs/Column"
      },
      "type": "array",
      "title": "Columns",
      "description": "Description of the columns in the result."
    }
  },
  "type": "object",
  "required": [
    "execution_time_ms",
    "result",
    "truncated",
    "columns"
  ],
  "$defs": {
    "Column": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "description": "The name of the column."
        },
        "type": {
          "type": "string",
          "title": "Type",
          "description": "The data type of the column."
        }
      },
      "type": "object",
      "required": [
        "name",
        "type"
      ],
      "title": "Column"
    }
  }
}