def invalidate(self, e=None):

        if self.connection is None:
            util.warn("Can't invalidate an already-closed connection.")
            return
        if self._connection_record:
            self._connection_record.invalidate(e=e)
        self.connection = None
        self._checkin()
Mark this connection as invalidated.
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/pool.py/_ConnectionFairy.invalidate