def cancel(self):
        """Cancel a long-running transaction.

        If the underlying driver supports this method, it will be called.

        """
        self._transaction = False
        try:
            cancel = self._con.cancel
        except AttributeError:
            pass
        else:
            cancel()
Cancel a long-running transaction.

        If the underlying driver supports this method, it will be called.