MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / primary_mapper

Method primary_mapper

lib/sqlalchemy/orm/mapper.py:3388–3392  ·  view source on GitHub ↗

Return the primary mapper corresponding to this mapper's class key (class).

(self)

Source from the content-addressed store, hash-verified

3386 return iter(self.self_and_descendants)
3387
3388 def primary_mapper(self) -> Mapper[Any]:
3389 """Return the primary mapper corresponding to this mapper's class key
3390 (class)."""
3391
3392 return self.class_manager.mapper
3393
3394 @property
3395 def primary_base_mapper(self) -> Mapper[Any]:

Callers 3

_canloadMethod · 0.95
_generate_backrefMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected