MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / recreate

Method recreate

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

Source from the content-addressed store, hash-verified

477 del self.__dict__["connection"]
478
479 def recreate(self) -> StaticPool:
480 self.logger.info("Pool recreating")
481 return self.__class__(
482 creator=self._creator,
483 recycle=self._recycle,
484 reset_on_return=self._reset_on_return,
485 pre_ping=self._pre_ping,
486 echo=self.echo,
487 logging_name=self._orig_logging_name,
488 _dispatch=self.dispatch,
489 dialect=self._dialect,
490 )
491
492 def _transfer_from(self, other_static_pool: StaticPool) -> None:
493 # 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