MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _prepend_path

Method _prepend_path

lib/sqlalchemy/orm/strategy_options.py:1042–1047  ·  view source on GitHub ↗
(self, path: PathRegistry)

Source from the content-addressed store, hash-verified

1040 return self._adjust_for_extra_criteria(context)
1041
1042 def _prepend_path(self, path: PathRegistry) -> Load:
1043 cloned = self._clone()
1044 cloned.context = tuple(
1045 element._prepend_path(path) for element in self.context
1046 )
1047 return cloned
1048
1049 def _adjust_for_extra_criteria(self, context: QueryContext) -> Load:
1050 """Apply the current bound parameters in a QueryContext to all

Callers 2

_prepend_pathMethod · 0.45
do_loadFunction · 0.45

Calls 1

_cloneMethod · 0.45

Tested by

no test coverage detected