Xata · Schema

QueryResult

Result of a single SQL query execution.

DatabasePostgresServerlessDeveloper ToolsBranchingAI Agent

Properties

Name Type Description
fields array Column metadata for the result set.
command string PostgreSQL command tag (e.g. `SELECT`, `INSERT`, `UPDATE`, `DELETE`).
rowCount integer Number of rows affected by the command.
rows array Result rows. Each row is an object (column-name keys) or an array (when array mode is enabled).
rowAsArray boolean Whether rows are returned as arrays (`true`) or objects (`false`).
View JSON Schema on GitHub

JSON Schema

xata-queryresult-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "QueryResult",
  "description": "Result of a single SQL query execution.",
  "type": "object",
  "properties": {
    "fields": {
      "description": "Column metadata for the result set.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/FieldDefinition"
      }
    },
    "command": {
      "description": "PostgreSQL command tag (e.g. `SELECT`, `INSERT`, `UPDATE`, `DELETE`).",
      "type": "string"
    },
    "rowCount": {
      "description": "Number of rows affected by the command.",
      "type": "integer",
      "nullable": true
    },
    "rows": {
      "description": "Result rows. Each row is an object (column-name keys) or an array (when array mode is enabled).",
      "type": "array",
      "items": {},
      "x-go-type": "any"
    },
    "rowAsArray": {
      "description": "Whether rows are returned as arrays (`true`) or objects (`false`).",
      "type": "boolean"
    }
  },
  "required": [
    "fields",
    "command",
    "rowCount",
    "rows",
    "rowAsArray"
  ]
}

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/xata-queryresult"
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 email required.

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