MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / mapper

Method mapper

lib/sqlalchemy/orm/util.py:1641–1645  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1639
1640 @property
1641 def mapper(self) -> Optional[Mapper[Any]]:
1642 mp: Optional[Mapper[Any]] = self.exprs[0]._annotations.get(
1643 "parentmapper", None
1644 )
1645 return mp
1646
1647 @property
1648 def entity(self) -> Optional[_InternalEntityType[Any]]:

Callers 15

setup_mappersMethod · 0.45
test_loader_optionsMethod · 0.45
test_decl_attributesMethod · 0.45
test_no_tableMethod · 0.45
test_prop_shadowMethod · 0.45
test_update_attr_keysMethod · 0.45
test_utilsMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 15

setup_mappersMethod · 0.36
test_loader_optionsMethod · 0.36
test_decl_attributesMethod · 0.36
test_no_tableMethod · 0.36
test_prop_shadowMethod · 0.36
test_update_attr_keysMethod · 0.36
test_utilsMethod · 0.36