{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/singlestore/main/json-schema/singlestore-exec-response-schema.json",
  "title": "ExecResponse",
  "description": "Response returned after successfully executing a DDL or DML statement.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/singlestore-queries-api-openapi.yml#/components/schemas/ExecResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "description": "Array of result metadata objects, one per statement executed.",
      "items": {
        "type": "object",
        "properties": {
          "lastInsertId": {
            "type": "integer",
            "description": "Auto-increment ID of the last row inserted by an INSERT statement, if applicable."
          },
          "rowsAffected": {
            "type": "integer",
            "description": "Number of rows affected by the executed statement."
          }
        }
      }
    }
  }
}