MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / close_detached

Method close_detached

lib/sqlalchemy/pool/events.py:363–375  ·  view source on GitHub ↗

Called when a detached DBAPI connection is closed. The event is emitted before the close occurs. The close of a connection can fail; typically this is because the connection is already closed. If the close operation fails, the connection is discarded. :par

(self, dbapi_connection: DBAPIConnection)

Source from the content-addressed store, hash-verified

361 """
362
363 def close_detached(self, dbapi_connection: DBAPIConnection) -> None:
364 """Called when a detached DBAPI connection is closed.
365
366 The event is emitted before the close occurs.
367
368 The close of a connection can fail; typically this is because
369 the connection is already closed. If the close operation fails,
370 the connection is discarded.
371
372 :param dbapi_connection: a DBAPI connection.
373 The :attr:`.ConnectionPoolEntry.dbapi_connection` attribute.
374
375 """

Callers 1

_finalize_fairyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected