MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / setup_mappers

Method setup_mappers

test/orm/test_deferred.py:1712–1718  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

1710
1711 @classmethod
1712 def setup_mappers(cls):
1713 super().setup_mappers()
1714 from sqlalchemy import inspect
1715
1716 inspect(Company).add_property(
1717 "managers", relationship(Manager, viewonly=True)
1718 )
1719
1720 def test_load_only_subclass(self):
1721 s = fixture_session()

Callers

nothing calls this directly

Calls 3

inspectFunction · 0.90
relationshipFunction · 0.90
add_propertyMethod · 0.80

Tested by

no test coverage detected