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

Method mapper

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

Source from the content-addressed store, hash-verified

1620
1621 @property
1622 def mapper(self) -> Optional[Mapper[Any]]:
1623 mp: Optional[Mapper[Any]] = self.exprs[0]._annotations.get(
1624 "parentmapper", None
1625 )
1626 return mp
1627
1628 @property
1629 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