def rollback(self):
        """Drop changes from current transaction."""
        if not self._in_transaction:
            raise NotInTransaction
        self._init_cache()
        self._in_transaction = False