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.
Class Method | _accept_with |
Undocumented |
Class Method | _clear |
Undocumented |
Class Method | _listen |
Undocumented |
Method | attribute_instrument |
Called when an attribute is instrumented. |
Method | class_instrument |
Called after the given class is instrumented. |
Method | class_uninstrument |
Called before the given class is uninstrumented. |
Class Variable | _target_class_doc |
Undocumented |
Inherited from Events
:
Class Method | _remove |
Undocumented |
Static Method | _set_dispatch |
Undocumented |
sqlalchemy.event.base.Events._listen
Undocumented
Called after the given class is instrumented.
To get at the .ClassManager
, use
.manager_of_class
.