MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _dec_overflow

Method _dec_overflow

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

Source from the content-addressed store, hash-verified

193 return False
194
195 def _dec_overflow(self) -> Literal[True]:
196 if self._max_overflow == -1:
197 self._overflow -= 1
198 return True
199 with self._overflow_lock:
200 self._overflow -= 1
201 return True
202
203 def recreate(self) -> QueuePool:
204 self.logger.info("Pool recreating")

Callers 2

_do_return_connMethod · 0.95
_do_getMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected