MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / close

Method close

lib/sqlalchemy/pool/base.py:1514–1517  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1512 self._pool.dispatch.detach(self.dbapi_connection, rec)
1513
1514 def close(self) -> None:
1515 self._counter -= 1
1516 if self._counter == 0:
1517 self._checkin()
1518
1519 def _close_special(self, transaction_reset: bool = False) -> None:
1520 self._counter -= 1

Callers 3

do_terminateMethod · 0.45
do_closeMethod · 0.45
__closeMethod · 0.45

Calls 1

_checkinMethod · 0.95

Tested by

no test coverage detected