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