MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _get_impl

Method _get_impl

lib/sqlalchemy/orm/query.py:1141–1157  ·  lib/sqlalchemy/orm/query.py::Query._get_impl
(
        self,
        primary_key_identity: _PKIdentityArgument,
        db_load_fn: Callable[..., Any],
        identity_token: Optional[Any] = None,
    )

Source from the content-addressed store, hash-verified

1139 return self._get_impl(ident, loading._load_on_pk_identity)
1140
1141 def _get_impl(
1142 self,
1143 primary_key_identity: _PKIdentityArgument,
1144 db_load_fn: Callable[..., Any],
1145 identity_token: Optional[Any] = None,
1146 ) -> Optional[Any]:
1147 mapper = self._only_full_mapper_zero(class="st">"get")
1148 return self.session._get_impl(
1149 mapper,
1150 primary_key_identity,
1151 db_load_fn,
1152 populate_existing=self.load_options._populate_existing,
1153 with_for_update=self._for_update_arg,
1154 options=self._with_options,
1155 identity_token=identity_token,
1156 execution_options=self._execution_options,
1157 )
1158
1159 @property
1160 def lazy_loaded_from(self) -> Optional[InstanceState[Any]]:

Callers 2

getMethod · 0.95
getMethod · 0.45

Calls 1

Tested by

no test coverage detected