{
  "db_name": "PostgreSQL",
  "query": "\n            UPDATE inference_endpoints SET\n                name = COALESCE($2, name),\n                description = CASE\n                    WHEN $3::text IS NOT NULL THEN $3\n                    ELSE description\n                END,\n                url = COALESCE($4, url),\n                api_key = CASE\n                    WHEN $5::text IS NOT NULL THEN $5\n                    ELSE api_key\n                END,\n                model_filter = CASE\n                    WHEN $6::text[] IS NOT NULL THEN $6\n                    ELSE model_filter\n                END,\n                auth_header_name = COALESCE($7, auth_header_name),\n                auth_header_prefix = COALESCE($8, auth_header_prefix),\n                updated_at = NOW()\n            WHERE id = $1\n            RETURNING *\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 1,
        "name": "description",
        "type_info": "Text"
      },
      {
        "ordinal": 2,
        "name": "url",
        "type_info": "Varchar"
      },
      {
        "ordinal": 3,
        "name": "created_by",
        "type_info": "Uuid"
      },
      {
        "ordinal": 4,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 5,
        "name": "updated_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 6,
        "name": "model_filter",
        "type_info": "TextArray"
      },
      {
        "ordinal": 7,
        "name": "api_key",
        "type_info": "Text"
      },
      {
        "ordinal": 8,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 9,
        "name": "auth_header_name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 10,
        "name": "auth_header_prefix",
        "type_info": "Varchar"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Varchar",
        "Text",
        "Varchar",
        "Text",
        "TextArray",
        "Varchar",
        "Varchar"
      ]
    },
    "nullable": [
      false,
      true,
      false,
      false,
      false,
      false,
      true,
      true,
      false,
      false,
      false
    ]
  },
  "hash": "b147b70f037aa3d26ba840c1661c31a52086325398bf6b7d492497b6df07bff9"
}
