{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/couchbase/main/json-schema/couchbase-prepared-statement-schema.json",
  "title": "PreparedStatement",
  "description": "A cached prepared statement",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/couchbase-query-admin-api-openapi.yml#/components/schemas/PreparedStatement",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the prepared statement"
    },
    "statement": {
      "type": "string",
      "description": "The original SQL++ statement"
    },
    "uses": {
      "type": "integer",
      "description": "Number of times the prepared statement has been used"
    },
    "lastUse": {
      "type": "string",
      "description": "Time of last use"
    }
  }
}