{
  "db_name": "PostgreSQL",
  "query": "\n            UPDATE api_keys\n            SET\n                name = COALESCE($2, name),\n                description = CASE\n                    WHEN $3::text IS NOT NULL THEN $3\n                    ELSE description\n                END,\n                requests_per_second = CASE\n                    WHEN $4::real IS NOT NULL THEN $4\n                    ELSE requests_per_second\n                END,\n                burst_size = CASE\n                    WHEN $5::integer IS NOT NULL THEN $5\n                    ELSE burst_size\n                END\n            WHERE id = $1\n            RETURNING *\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 2,
        "name": "description",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "secret",
        "type_info": "Varchar"
      },
      {
        "ordinal": 4,
        "name": "user_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 5,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 6,
        "name": "last_used",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 7,
        "name": "requests_per_second",
        "type_info": "Float4"
      },
      {
        "ordinal": 8,
        "name": "burst_size",
        "type_info": "Int4"
      },
      {
        "ordinal": 9,
        "name": "purpose",
        "type_info": "Varchar"
      },
      {
        "ordinal": 10,
        "name": "hidden",
        "type_info": "Bool"
      },
      {
        "ordinal": 11,
        "name": "is_deleted",
        "type_info": "Bool"
      },
      {
        "ordinal": 12,
        "name": "created_by",
        "type_info": "Uuid"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Varchar",
        "Text",
        "Float4",
        "Int4"
      ]
    },
    "nullable": [
      false,
      false,
      true,
      false,
      false,
      false,
      true,
      true,
      true,
      false,
      false,
      false,
      false
    ]
  },
  "hash": "09139014124c382fced3c0e35c87b437d5d1ba4b5a17788b3b5352428151128f"
}
