MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / _return_conn

Method _return_conn

lib/sqlalchemy/pool/base.py:448–455  ·  view source on GitHub ↗

Given a _ConnectionRecord, return it to the :class:`_pool.Pool`. This method is called when an instrumented DBAPI connection has its ``close()`` method called.

(self, record: ConnectionPoolEntry)

Source from the content-addressed store, hash-verified

446 return _ConnectionFairy._checkout(self)
447
448 def _return_conn(self, record: ConnectionPoolEntry) -> None:
449 """Given a _ConnectionRecord, return it to the :class:`_pool.Pool`.
450
451 This method is called when an instrumented DBAPI connection
452 has its ``close()`` method called.
453
454 """
455 self._do_return_conn(record)
456
457 def _do_get(self) -> ConnectionPoolEntry:
458 """Implementation for :meth:`get`, supplied by subclasses."""

Callers 1

checkinMethod · 0.80

Calls 1

_do_return_connMethod · 0.95

Tested by

no test coverage detected