Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
drain
Method · 0.95
_maybe_close_connection
Method · 0.95
close
Method · 0.95
check
Method · 0.95
_return_connection
Method · 0.95
_add_to_pool
Method · 0.95
_reset_connection
Method · 0.95
_shrink_pool
Method · 0.95
_maybe_close_connection
Method · 0.45
_add_to_pool
Method · 0.45
_maybe_close_connection
Method · 0.45
_add_to_pool
Method · 0.45
Calls
1
close
Method · 0.45
Tested by
no test coverage detected