MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / primary_mapper

Method primary_mapper

lib/sqlalchemy/orm/mapper.py:3430–3434  ·  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

3428 return iter(self.self_and_descendants)
3429
3430 def primary_mapper(self) -> Mapper[Any]:
3431 """Return the primary mapper corresponding to this mapper's class key
3432 (class)."""
3433
3434 return self.class_manager.mapper
3435
3436 @property
3437 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