class documentation
class Events(_HasEventsDispatch[
Known subclasses: sqlalchemy.engine.events.ConnectionEvents
, sqlalchemy.engine.events.DialectEvents
, sqlalchemy.orm.events.AttributeEvents
, sqlalchemy.orm.events.InstanceEvents
, sqlalchemy.orm.events.InstrumentationEvents
, sqlalchemy.orm.events.MapperEvents
, sqlalchemy.orm.events.QueryEvents
, sqlalchemy.orm.events.SessionEvents
, sqlalchemy.pool.events.PoolEvents
, sqlalchemy.sql.events.DDLEvents
Define event listening functions for a particular target type.
Class Method | _accept |
Undocumented |
Class Method | _clear |
Undocumented |
Class Method | _listen |
Undocumented |
Class Method | _remove |
Undocumented |
Inherited from _HasEventsDispatch
:
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 |
@classmethod
def _accept_with(cls, target:
def _accept_with(cls, target:
Union[ _ET, Type[ _ET]]
, identifier: str
) -> Optional[ Union[ _ET, Type[ _ET]]]
:
(source)
¶
overridden in
sqlalchemy.engine.events.ConnectionEvents
, sqlalchemy.engine.events.DialectEvents
, sqlalchemy.orm.events.AttributeEvents
, sqlalchemy.orm.events.InstanceEvents
, sqlalchemy.orm.events.InstrumentationEvents
, sqlalchemy.orm.events.MapperEvents
, sqlalchemy.orm.events.SessionEvents
, sqlalchemy.pool.events.PoolEvents
Undocumented
overridden in
sqlalchemy.orm.events.InstanceEvents
, sqlalchemy.orm.events.InstrumentationEvents
, sqlalchemy.orm.events.MapperEvents
Undocumented
@classmethod
def _listen(cls, event_key:
def _listen(cls, event_key:
_EventKey[ _ET]
, *, propagate: bool
= False, insert: bool
= False, named: bool
= False, asyncio: bool
= False):
(source)
¶
overridden in
sqlalchemy.engine.events.ConnectionEvents
, sqlalchemy.engine.events.DialectEvents
, sqlalchemy.orm.events.AttributeEvents
, sqlalchemy.orm.events.InstanceEvents
, sqlalchemy.orm.events.InstrumentationEvents
, sqlalchemy.orm.events.MapperEvents
, sqlalchemy.orm.events.QueryEvents
, sqlalchemy.orm.events.SessionEvents
, sqlalchemy.pool.events.PoolEvents
Undocumented