Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sqlalchemy/sqlalchemy
/ _cleanup
Method
_cleanup
lib/sqlalchemy/pool/impl.py:404–407 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
402
self._all_conns.clear()
403
404
def
_cleanup(self) -> None:
405
while
len(self._all_conns) >= self.size:
406
c = self._all_conns.pop()
407
c.close()
408
409
def
status(self) -> str:
410
return
"SingletonThreadPool id:%d size: %d"
% (
Callers
1
_do_get
Method · 0.95
Calls
2
pop
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected