MCPcopy
hub / github.com/psycopg/psycopg / _close_connection

Method _close_connection

psycopg_pool/psycopg_pool/pool.py:822–824  ·  view source on GitHub ↗
(self, conn: CT)

Source from the content-addressed store, hash-verified

820 self._close_connection(conn)
821
822 def _close_connection(self, conn: CT) -> None:
823 conn._pool = None
824 conn.close()
825
826 def _shrink_pool(self) -> None:
827 to_close: CT | None = None

Callers 12

drainMethod · 0.95
closeMethod · 0.95
checkMethod · 0.95
_return_connectionMethod · 0.95
_add_to_poolMethod · 0.95
_reset_connectionMethod · 0.95
_shrink_poolMethod · 0.95
_add_to_poolMethod · 0.45
_add_to_poolMethod · 0.45

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected