MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __call__

Method __call__

lib/sqlalchemy/orm/strategies.py:1286–1297  ·  view source on GitHub ↗
(self, state, passive=attributes.PASSIVE_OFF)

Source from the content-addressed store, hash-verified

1284 }
1285
1286 def __call__(self, state, passive=attributes.PASSIVE_OFF):
1287 key = self.key
1288 instance_mapper = state.manager.mapper
1289 prop = instance_mapper._props[key]
1290 strategy = prop._strategies[self.strategy_key]
1291
1292 return strategy._load_for_state(
1293 state,
1294 passive,
1295 loadopt=self.loadopt,
1296 extra_criteria=self.extra_criteria,
1297 )
1298
1299
1300class _PostLoader(_AbstractRelationshipLoader):

Callers

nothing calls this directly

Calls 1

_load_for_stateMethod · 0.45

Tested by

no test coverage detected