docs: def in_transaction(self):
          """
          :return: True if there is an open transaction.
          """
          self._in_transaction = self._in_transaction and self.is_connected
          return self._in_transaction