MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / process

Method process

lib/sqlalchemy/orm/strategy_options.py:1074–1088  ·  view source on GitHub ↗
(
            opt: _LoadElement,
            replacement_cache_key: CacheKey,
            orig_cache_key: CacheKey,
        )

Source from the content-addressed store, hash-verified

1072 assert orig_cache_key is not None
1073
1074 def process(
1075 opt: _LoadElement,
1076 replacement_cache_key: CacheKey,
1077 orig_cache_key: CacheKey,
1078 ) -> _LoadElement:
1079 cloned_opt = opt._clone()
1080
1081 cloned_opt._extra_criteria = tuple(
1082 replacement_cache_key._apply_params_to_element(
1083 orig_cache_key, crit
1084 )
1085 for crit in cloned_opt._extra_criteria
1086 )
1087
1088 return cloned_opt
1089
1090 cloned = self._clone()
1091 cloned.context = tuple(

Calls 2

_cloneMethod · 0.45

Tested by

no test coverage detected