MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _revalidate_connection

Method _revalidate_connection

lib/sqlalchemy/engine/base.py:687–693  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

685 )
686
687 def _revalidate_connection(self) -> PoolProxiedConnection:
688 if self.__can_reconnect and self.invalidated:
689 if self._transaction is not None:
690 self._invalid_transaction()
691 self._dbapi_connection = self.engine.raw_connection()
692 return self._dbapi_connection
693 raise exc.ResourceClosedError("This Connection is closed")
694
695 @property
696 def info(self) -> _InfoType:

Callers 3

connectionMethod · 0.95
_execute_defaultMethod · 0.95
_execute_contextMethod · 0.95

Calls 2

_invalid_transactionMethod · 0.95
raw_connectionMethod · 0.45

Tested by

no test coverage detected