(
self,
primary_key_identity: _PKIdentityArgument,
db_load_fn: Callable[..., Any],
identity_token: Optional[Any] = None,
)
| 1127 | return self._get_impl(ident, loading.load_on_pk_identity) |
| 1128 | |
| 1129 | def _get_impl( |
| 1130 | self, |
| 1131 | primary_key_identity: _PKIdentityArgument, |
| 1132 | db_load_fn: Callable[..., Any], |
| 1133 | identity_token: Optional[Any] = None, |
| 1134 | ) -> Optional[Any]: |
| 1135 | mapper = self._only_full_mapper_zero("get") |
| 1136 | return self.session._get_impl( |
| 1137 | mapper, |
| 1138 | primary_key_identity, |
| 1139 | db_load_fn, |
| 1140 | populate_existing=self.load_options._populate_existing, |
| 1141 | with_for_update=self._for_update_arg, |
| 1142 | options=self._with_options, |
| 1143 | identity_token=identity_token, |
| 1144 | execution_options=self._execution_options, |
| 1145 | ) |
| 1146 | |
| 1147 | @property |
| 1148 | def lazy_loaded_from(self) -> Optional[InstanceState[Any]]: |
no test coverage detected