(self)
| 469 | return "StaticPool" |
| 470 | |
| 471 | def dispose(self) -> None: |
| 472 | if ( |
| 473 | "connection" in self.__dict__ |
| 474 | and self.connection.dbapi_connection is not None |
| 475 | ): |
| 476 | self.connection.close() |
| 477 | del self.__dict__["connection"] |
| 478 | |
| 479 | def recreate(self) -> StaticPool: |
| 480 | self.logger.info("Pool recreating") |