{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "table": {
      "type": "string"
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {}
      }
    },
    "offset": {
      "type": "number"
    },
    "total": {
      "type": "number"
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "keyColumns": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "rowKeys": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "environment": {
      "description": "The environment the command used: test unless --environment live was given.",
      "type": "string",
      "enum": ["test", "live"]
    }
  },
  "required": ["table", "columns", "rows", "offset", "total"],
  "additionalProperties": {},
  "title": "SQL table rows",
  "description": "Up to 50 rows. Long text is cut to { text, truncated: true }; BLOBs show { blob: bytes }. Pass nextCursor to --cursor for the next page; it is null on the last page. keyColumns names the columns a row's key holds (the primary key's, or rowid); pass a row's rowKeys entry to storage cell --key."
}
