MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / dispose

Method dispose

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected