# sqlalchemy 2.1.9 (MIT), harvested by tools/harvest_corpus.py
=== input
Called when a DBAPI connection is to be "soft invalidated".

        This event is called any time the
        :meth:`.ConnectionPoolEntry.invalidate`
        method is invoked with the ``soft`` flag.

        Soft invalidation refers to when the connection record that tracks
        this connection will force a reconnect after the current connection
        is checked in.   It does not actively close the dbapi_connection
        at the point at which it is called.

        :param dbapi_connection: a DBAPI connection.
         The :attr:`.ConnectionPoolEntry.dbapi_connection` attribute.

        :param connection_record: the :class:`.ConnectionPoolEntry` managing
         the DBAPI connection.

        :param exception: the exception object corresponding to the reason
         for this invalidation, if any.  May be ``None``.

        
=== parse rest
short_description: 'Called when a DBAPI connection is to be "soft invalidated".'
long_description: |
  This event is called any time the
  :meth:`.ConnectionPoolEntry.invalidate`
  method is invoked with the ``soft`` flag.
  
  Soft invalidation refers to when the connection record that tracks
  this connection will force a reconnect after the current connection
  is checked in.   It does not actively close the dbapi_connection
  at the point at which it is called.
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: |
    a DBAPI connection.
    The :attr:`.ConnectionPoolEntry.dbapi_connection` attribute.
  kind: param
  key: 'param'
  arg_name: 'dbapi_connection'
  is_optional: False
- DocstringParam
  description: |
    the :class:`.ConnectionPoolEntry` managing
    the DBAPI connection.
  kind: param
  key: 'param'
  arg_name: 'connection_record'
  is_optional: False
- DocstringParam
  description: |
    the exception object corresponding to the reason
    for this invalidation, if any.  May be ``None``.
  kind: param
  key: 'param'
  arg_name: 'exception'
  is_optional: False
=== detect
rest
=== compose rest
Called when a DBAPI connection is to be "soft invalidated".

This event is called any time the
:meth:`.ConnectionPoolEntry.invalidate`
method is invoked with the ``soft`` flag.

Soft invalidation refers to when the connection record that tracks
this connection will force a reconnect after the current connection
is checked in.   It does not actively close the dbapi_connection
at the point at which it is called.

:param dbapi_connection: a DBAPI connection.
    The :attr:`.ConnectionPoolEntry.dbapi_connection` attribute.
:param connection_record: the :class:`.ConnectionPoolEntry` managing
    the DBAPI connection.
:param exception: the exception object corresponding to the reason
    for this invalidation, if any.  May be ``None``.
