CData · Schema

QueryResult

DataData AccessData ConnectivityDatabaseNoSQLSQLA2A

Properties

Name Type Description
results arraynull
error object
View JSON Schema on GitHub

JSON Schema

cdata-query-result-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cdata/main/json-schema/cdata-query-result-schema.json",
  "title": "QueryResult",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cdata-metadata-api-openapi.yml#/components/schemas/QueryResult",
  "type": "object",
  "properties": {
    "results": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ResultSet"
      }
    },
    "error": {
      "$ref": "#/$defs/ErrorDetail"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ColumnInfo": {
      "type": "object",
      "properties": {
        "catalogName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the catalog containing the column."
        },
        "columnLabel": {
          "type": [
            "string",
            "null"
          ],
          "description": "The label of the column."
        },
        "columnName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the column."
        },
        "dataType": {
          "$ref": "#/$defs/DataType"
        },
        "dataTypeName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The data type name of the column."
        },
        "length": {
          "type": "integer",
          "format": "int32",
          "description": "The length of the column."
        },
        "nullable": {
          "type": "boolean",
          "description": "Whether the column is nullable."
        },
        "ordinal": {
          "type": "integer",
          "format": "int32",
          "description": "The ordinal position of the column."
        },
        "precision": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "The precision of the column."
        },
        "scale": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "The scale of the column."
        },
        "schemaName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the schema containing the column."
        },
        "tableName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the table containing the column."
        }
      },
      "additionalProperties": false
    },
    "DataType": {
      "enum": [
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11,
        12,
        13,
        14,
        15,
        16,
        17,
        18
      ],
      "type": "integer",
      "description": "The parameter's [data type](/en/API/REST-API#data-types).",
      "format": "int32"
    },
    "ErrorCode": {
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11,
        12,
        13,
        14,
        15,
        16,
        17,
        18,
        19,
        20,
        21,
        22,
        23,
        24,
        25,
        26,
        27,
        28,
        29,
        30,
        31,
        32,
        33,
        34,
        35,
        36,
        37,
        38,
        39,
        40,
        41,
        42,
        43,
        44,
        45,
        46,
        47,
        48,
        49,
        50,
        51,
        52,
        53,
        54,
        55,
        56,
        57,
        58,
        59,
        60,
        61,
        62,
        63,
        64,
        65,
        66,
        67,
        68,
        69,
        70,
        71,
        72,
        73,
        74,
        75,
        76,
        77,
        78,
        79
      ],
      "type": "integer",
      "format": "int32"
    },
    "ErrorDetail": {
      "type": "object",
      "properties": {
        "code": {
          "$ref": "#/$defs/ErrorCode"
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "The error message."
        }
      },
      "additionalProperties": false
    },
    "ResultSet": {
      "type": "object",
      "properties": {
        "affectedRows": {
          "type": "integer",
          "format": "int32",
          "description": "The number of rows affected by the query, or -1 if not applicable."
        },
        "schema": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ColumnInfo"
          }
        },
        "rows": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "array",
            "items": {}
          }
        }
      },
      "additionalProperties": false
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cdata-query-result"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.