| 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 |