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)
| 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: |
no outgoing calls