MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / recreate

Method recreate

lib/sqlalchemy/pool/impl.py:560–571  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

558 self._conn.close()
559
560 def recreate(self) -> AssertionPool:
561 self.logger.info("Pool recreating")
562 return self.__class__(
563 self._creator,
564 echo=self.echo,
565 pre_ping=self._pre_ping,
566 recycle=self._recycle,
567 reset_on_return=self._reset_on_return,
568 logging_name=self._orig_logging_name,
569 _dispatch=self.dispatch,
570 dialect=self._dialect,
571 )
572
573 def _do_get(self) -> ConnectionPoolEntry:
574 if self._checked_out:

Callers

nothing calls this directly

Calls 1

infoMethod · 0.45

Tested by

no test coverage detected