class documentation

Describe the loading behavior of a StrategizedProperty object. The ``LoaderStrategy`` interacts with the querying process in three ways: * it controls the configuration of the ``InstrumentedAttribute`` placed on a class to handle the behavior of the attribute. this may involve setting up class-level callable functions to fire off a select operation when the attribute is first accessed (i.e. a lazy load) * it processes the ``QueryContext`` at statement construction time, where it can modify the SQL statement that is being produced. For example, simple column attributes will add their represented column to the list of selected columns, a joined eager loader may establish join clauses to add to the statement. * It produces "row processor" functions at result fetching time. These "row processor" functions populate a particular attribute on a particular mapped instance.

Method __init__ Undocumented
Method __str__ Undocumented
Method create_row_processor Establish row processing functions for a given QueryContext.
Method init_class_attribute Undocumented
Method setup_query Establish column and other state for a given QueryContext.
Class Variable __slots__ Undocumented
Instance Variable is_class_level Undocumented
Instance Variable key Undocumented
Instance Variable parent Undocumented
Instance Variable parent_property Undocumented
Instance Variable strategy_key Undocumented
Instance Variable strategy_opts Undocumented
Class Variable _strategy_keys Undocumented
def __str__(self) -> str: (source)

Undocumented

def create_row_processor(self, context: ORMCompileState, query_entity: _MapperEntity, path: AbstractEntityRegistry, loadopt: Optional[_LoadElement], mapper: Mapper[Any], result: Result[Any], adapter: Optional[ORMAdapter], populators: _PopulatorDict): (source)

Establish row processing functions for a given QueryContext. This method fulfills the contract specified by MapperProperty.create_row_processor(). StrategizedProperty delegates its create_row_processor() method directly to this method.

def setup_query(self, compile_state: ORMCompileState, query_entity: _MapperEntity, path: AbstractEntityRegistry, loadopt: Optional[_LoadElement], adapter: Optional[ORMAdapter], **kwargs: Any): (source)

Establish column and other state for a given QueryContext. This method fulfills the contract specified by MapperProperty.setup(). StrategizedProperty delegates its setup() method directly to this method.

Undocumented

Undocumented

parent_property = (source)

Undocumented

strategy_key = (source)

Undocumented

strategy_opts = (source)

Undocumented

Undocumented