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

Method dispose

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

Source from the content-addressed store, hash-verified

475 return "StaticPool"
476
477 def dispose(self) -> None:
478 if (
479 "connection" in self.__dict__
480 and self.connection.dbapi_connection is not None
481 ):
482 self.connection.close()
483 del self.__dict__["connection"]
484
485 def recreate(self) -> StaticPool:
486 self.logger.info("Pool recreating")

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected