MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _with_current_path

Method _with_current_path

lib/sqlalchemy/orm/query.py:1022–1032  ·  view source on GitHub ↗

indicate that this query applies to objects loaded within a certain path. Used by deferred loaders (see strategies.py) which transfer query options from an originating query to a newly generated query intended for the deferred load.

(self, path: PathRegistry)

Source from the content-addressed store, hash-verified

1020
1021 @_generative
1022 def _with_current_path(self, path: PathRegistry) -> Self:
1023 """indicate that this query applies to objects loaded
1024 within a certain path.
1025
1026 Used by deferred loaders (see strategies.py) which transfer
1027 query options from an originating query to a newly generated
1028 query intended for the deferred load.
1029
1030 """
1031 self._compile_options += {"_current_path": path}
1032 return self
1033
1034 @_generative
1035 def yield_per(self, count: int) -> Self:

Calls

no outgoing calls