class documentation

class _TraceAdaptRole(enum.Enum): (source)

View In Hierarchy

Enumeration of all the use cases for ORMAdapter. ORMAdapter remains one of the most complicated aspects of the ORM, as it is used for in-place adaption of column expressions to be applied to a SELECT, replacing :class:`.Table` and other objects that are mapped to classes with aliases of those tables in the case of joined eager loading, or in the case of polymorphic loading as used with concrete mappings or other custom "with polymorphic" parameters, with whole user-defined subqueries. The enumerations provide an overview of all the use cases used by ORMAdapter, a layer of formality as to the introduction of new ORMAdapter use cases (of which none are anticipated), as well as a means to trace the origins of a particular ORMAdapter within runtime debugging. SQLAlchemy 2.0 has greatly scaled back ORM features which relied heavily on open-ended statement adaption, including the ``Query.with_polymorphic()`` method and the ``Query.select_from_entity()`` methods, favoring user-explicit aliasing schemes using the ``aliased()`` and ``with_polymorphic()`` standalone constructs; these still use adaption, however the adaption is applied in a narrower scope.

Constant ADAPT_FROM_STATEMENT Undocumented
Constant ALIASED_INSP Undocumented
Constant COMPOUND_EAGER_STATEMENT Undocumented
Constant DEPRECATED_JOIN_ADAPT_RIGHT_SIDE Undocumented
Constant JOINEDLOAD_MEMOIZED_ADAPTER Undocumented
Constant JOINEDLOAD_PATH_WITH_POLYMORPHIC Undocumented
Constant JOINEDLOAD_USER_DEFINED_ALIAS Undocumented
Constant LEGACY_SELECT_FROM_ALIAS Undocumented
Constant MAPPER_POLYMORPHIC_ADAPTER Undocumented
Constant WITH_POLYMORPHIC_ADAPTER Undocumented
Constant WITH_POLYMORPHIC_ADAPTER_RIGHT_JOIN Undocumented
ADAPT_FROM_STATEMENT = (source)

Undocumented

Value
enum.auto()
ALIASED_INSP = (source)

Undocumented

Value
enum.auto()
COMPOUND_EAGER_STATEMENT = (source)

Undocumented

Value
enum.auto()
DEPRECATED_JOIN_ADAPT_RIGHT_SIDE = (source)

Undocumented

Value
enum.auto()
JOINEDLOAD_MEMOIZED_ADAPTER = (source)

Undocumented

Value
enum.auto()
JOINEDLOAD_PATH_WITH_POLYMORPHIC = (source)

Undocumented

Value
enum.auto()
JOINEDLOAD_USER_DEFINED_ALIAS = (source)

Undocumented

Value
enum.auto()
LEGACY_SELECT_FROM_ALIAS = (source)

Undocumented

Value
enum.auto()
MAPPER_POLYMORPHIC_ADAPTER = (source)

Undocumented

Value
enum.auto()
WITH_POLYMORPHIC_ADAPTER = (source)

Undocumented

Value
enum.auto()
WITH_POLYMORPHIC_ADAPTER_RIGHT_JOIN = (source)

Undocumented

Value
enum.auto()