class documentation

class LazyLoader(AbstractRelationshipLoader, util.MemoizedSlots):

View In Hierarchy

Provide loading behavior for a .RelationshipProperty with "lazy=True", that is loads when first accessed.
Method __init__ Undocumented
Method ​_emit​_lazyload Undocumented
Method ​_generate​_lazy​_clause Undocumented
Method ​_get​_ident​_for​_use​_get Undocumented
Method ​_invoke​_raise​_load Undocumented
Method ​_load​_for​_state Undocumented
Method ​_memoized​_attr​_​_simple​_lazy​_clause Undocumented
Method create​_row​_processor Establish row processing functions for a given QueryContext.
Method init​_class​_attribute Undocumented
Class Variable __slots__ Undocumented
Instance Variable ​_bind​_to​_col Undocumented
Instance Variable ​_equated​_columns Undocumented
Instance Variable ​_lazywhere Undocumented
Instance Variable ​_order​_by Undocumented
Instance Variable ​_raise​_always Undocumented
Instance Variable ​_raise​_on​_sql Undocumented
Instance Variable ​_rev​_bind​_to​_col Undocumented
Instance Variable ​_rev​_equated​_columns Undocumented
Instance Variable ​_rev​_lazywhere Undocumented
Instance Variable is​_aliased​_class Undocumented
Instance Variable is​_class​_level Undocumented
Instance Variable use​_get Undocumented

Inherited from AbstractRelationshipLoader:

Instance Variable entity Undocumented
Instance Variable mapper Undocumented
Instance Variable target Undocumented
Instance Variable uselist Undocumented

Inherited from LoaderStrategy (via AbstractRelationshipLoader):

Method __str__ Undocumented
Method setup​_query Establish column and other state for a given QueryContext.
Instance Variable key Undocumented
Instance Variable parent Undocumented
Instance Variable parent​_property Undocumented
Instance Variable strategy​_key Undocumented
Instance Variable strategy​_opts Undocumented

Inherited from MemoizedSlots:

Method __getattr__ Undocumented
Method ​_fallback​_getattr Undocumented
def __init__(self, parent, strategy_key):
@util.preload_module('sqlalchemy.orm.strategy_options')
def _emit_lazyload(self, session, state, primary_key_identity, passive, loadopt, extra_criteria):

Undocumented

def _generate_lazy_clause(self, state, passive):

Undocumented

def _get_ident_for_use_get(self, session, state, passive):

Undocumented

def _invoke_raise_load(self, state, passive, lazy):

Undocumented

def _load_for_state(self, state, passive, loadopt=None, extra_criteria=()):

Undocumented

def _memoized_attr__simple_lazy_clause(self):

Undocumented

def create_row_processor(self, context, query_entity, path, loadopt, mapper, result, adapter, populators):

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 init_class_attribute(self, mapper):
__slots__: tuple[str, ...] =
_bind_to_col =

Undocumented

_equated_columns =

Undocumented

_lazywhere =

Undocumented

_order_by =

Undocumented

_raise_always =

Undocumented

_raise_on_sql =

Undocumented

_rev_bind_to_col =

Undocumented

_rev_equated_columns =

Undocumented

_rev_lazywhere =

Undocumented

is_aliased_class =

Undocumented

is_class_level: bool =
use_get =

Undocumented