class InstrumentationEvents(event.Events[
Events related to class instrumentation events. The listeners here support being established against any new style class, that is any object that is a subclass of 'type'. Events will then be fired off for events against that class. If the "propagate=True" flag is passed to event.listen(), the event will fire off for subclasses of that class as well. The Python ``type`` builtin is also accepted as a target, which when used has the effect of events being emitted for all classes. Note the "propagate" flag here is defaulted to ``True``, unlike the other class level events where it defaults to ``False``. This means that new subclasses will also be the subject of these events, when a listener is established on a superclass.
Method | attribute |
Called when an attribute is instrumented. |
Method | class |
Called after the given class is instrumented. |
Method | class |
Called before the given class is uninstrumented. |
Class Method | _accept |
Undocumented |
Class Method | _clear |
Undocumented |
Class Method | _listen |
Undocumented |
Class Variable | _target |
Undocumented |
Inherited from Events
:
Class Method | _remove |
Undocumented |
Inherited from _HasEventsDispatch
(via Events
):
Method | __getattr__ |
Undocumented |
Method | __init |
Intercept new Event subclasses and create associated _Dispatch classes. |
Class Variable | dispatch |
reference back to the _Dispatch class. |
Class Method | _create |
Create a :class:`._Dispatch` class corresponding to an :class:`.Events` class. |
Static Method | _set |
Undocumented |
Class Variable | _dispatch |
class which will receive the .dispatch collection |
Called after the given class is instrumented. To get at the :class:`.ClassManager`, use :func:`.manager_of_class`.
Called before the given class is uninstrumented. To get at the :class:`.ClassManager`, use :func:`.manager_of_class`.
def _accept_with(cls, target:
Union[ InstrumentationFactory, Type[ InstrumentationFactory]]
, identifier: str
) -> Optional[ Union[ InstrumentationFactory, Type[ InstrumentationFactory]]]
:
(source)
¶
Undocumented
def _listen(cls, event_key:
_EventKey[ _T]
, propagate: bool
= True, **kw: Any
):
(source)
¶
sqlalchemy.event.base.Events._listen
Undocumented