Session API — SQLAlchemy 2.0.0b1 documentation
Session and sessionmaker()
Attribute and State Management Utilities
These functions are provided by the SQLAlchemy attribute instrumentation API to provide a detailed interface for dealing with instances, attribute values, and history. Some of them are useful when constructing event listener functions, such as those described in ORM Events.
InstanceStatefor a given mapped object.
This function is the internal version of
_sa.inspect()function is preferred here as they each emit an informative exception if the given object is not mapped.