{
  "db_name": "PostgreSQL",
  "query": "\n            UPDATE batches\n            SET cancelling_at = CASE\n                    WHEN completed_at IS NULL AND failed_at IS NULL AND cancelled_at IS NULL\n                        THEN COALESCE(cancelling_at, NOW())\n                    ELSE cancelling_at\n                END,\n                cancelled_at = CASE\n                    WHEN completed_at IS NULL AND failed_at IS NULL AND cancelled_at IS NULL\n                        THEN COALESCE(cancelled_at, NOW())\n                    ELSE cancelled_at\n                END,\n                file_id = NULL\n            WHERE file_id = $1\n            ",
  "describe": {
    "columns": [],
    "parameters": {
      "Left": [
        "Uuid"
      ]
    },
    "nullable": []
  },
  "hash": "81cbf35a430ce4aa3068e1dc7af43aac02c782dbe38f5fb28aaff243cbc7ac38"
}
