{
  "db_name": "PostgreSQL",
  "query": "INSERT INTO leader_leases (name, holder_id, heartbeat_at, expires_at)\n         VALUES ($1, $2, NOW(), NOW() + ($3 * INTERVAL '1 second'))\n         ON CONFLICT (name) DO UPDATE\n           SET holder_id = $2, heartbeat_at = NOW(), expires_at = NOW() + ($3 * INTERVAL '1 second')\n           WHERE leader_leases.expires_at < NOW()\n              OR leader_leases.holder_id = $2\n         RETURNING holder_id",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "holder_id",
        "type_info": "Uuid"
      }
    ],
    "parameters": {
      "Left": [
        "Varchar",
        "Uuid",
        "Float8"
      ]
    },
    "nullable": [
      false
    ]
  },
  "hash": "bfb5eef6cc330c4f3449e8f691e1f98f95336aa9eaa98ee7a3becd495367e428"
}
