MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / refresh_handler

Method refresh_handler

lib/sqlalchemy/orm/descriptor_props.py:592–602  ·  view source on GitHub ↗
(
            state: InstanceState[Any],
            context: _ORMCompileState,
            to_load: Optional[Sequence[str]],
        )

Source from the content-addressed store, hash-verified

590 _load_refresh_handler(state, context, None, is_refresh=False)
591
592 def refresh_handler(
593 state: InstanceState[Any],
594 context: _ORMCompileState,
595 to_load: Optional[Sequence[str]],
596 ) -> None:
597 # note this corresponds to sqlalchemy.ext.mutable load_attrs()
598
599 if not to_load or (
600 {self.key}.union(self._attribute_keys)
601 ).intersection(to_load):
602 _load_refresh_handler(state, context, to_load, is_refresh=True)
603
604 def _load_refresh_handler(
605 state: InstanceState[Any],

Callers

nothing calls this directly

Calls 2

intersectionMethod · 0.45
unionMethod · 0.45

Tested by

no test coverage detected