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

Method recreate

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

Source from the content-addressed store, hash-verified

483 del self.__dict__["connection"]
484
485 def recreate(self) -> StaticPool:
486 self.logger.info("Pool recreating")
487 return self.__class__(
488 creator=self._creator,
489 recycle=self._recycle,
490 reset_on_return=self._reset_on_return,
491 pre_ping=self._pre_ping,
492 echo=self.echo,
493 logging_name=self._orig_logging_name,
494 _dispatch=self.dispatch,
495 dialect=self._dialect,
496 )
497
498 def _transfer_from(self, other_static_pool: StaticPool) -> None:
499 # used by the test suite to make a new engine / pool without

Callers 1

test_recreateMethod · 0.95

Calls 1

infoMethod · 0.45

Tested by 1

test_recreateMethod · 0.76