Release: 2.0.37 | Release Date: January 9, 2025

# SQLAlchemy 2.0 Documentation

# Events and Internals

The SQLAlchemy ORM as well as Core are extended generally through the use of event hooks. Be sure to review the use of the event system in general at Events.

- ORM Events
  - Session Events
  - Mapper Events
  - Instance Events
  - Attribute Events
  - Query Events
  - Instrumentation Events
- ORM Internals
  - `AttributeState`
  - `CascadeOptions`
  - `ClassManager`
  - `ColumnProperty`
  - `Composite`
  - `CompositeProperty`
  - `AttributeEventToken`
  - `IdentityMap`
  - `InspectionAttr`
  - `InspectionAttrInfo`
  - `InstanceState`
  - `InstrumentedAttribute`
  - `LoaderCallableStatus`
  - `Mapped`
  - `MappedColumn`
  - `MapperProperty`
  - `MappedSQLExpression`
  - `InspectionAttrExtensionType`
  - `NotExtension`
  - `merge_result()`
  - `merge_frozen_result()`
  - `PropComparator`
  - `Relationship`
  - `RelationshipDirection`
  - `RelationshipProperty`
  - `SQLORMExpression`
  - `Synonym`
  - `SynonymProperty`
  - `QueryContext`
  - `QueryableAttribute`
  - `UOWTransaction`
- ORM Exceptions
  - `ConcurrentModificationError`
  - `DetachedInstanceError`
  - `FlushError`
  - `LoaderStrategyException`
  - `NO_STATE`
  - `ObjectDeletedError`
  - `ObjectDereferencedError`
  - `StaleDataError`
  - `UnmappedClassError`
  - `UnmappedColumnError`
  - `UnmappedError`
  - `UnmappedInstanceError`