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

Method setup_mappers

test/orm/test_cycles.py:218–231  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

216
217 @classmethod
218 def setup_mappers(cls):
219 item, TT = cls.tables.item, cls.classes.TT
220
221 cls.mapper_registry.map_imperatively(
222 TT,
223 item,
224 properties={
225 "children": relationship(
226 TT,
227 remote_side=[item.c.parent_uuid],
228 backref=backref("parent", remote_side=[item.c.uuid]),
229 )
230 },
231 )
232
233 def test_basic(self):
234 TT = self.classes.TT

Callers

nothing calls this directly

Calls 3

relationshipFunction · 0.90
backrefFunction · 0.90
map_imperativelyMethod · 0.80

Tested by

no test coverage detected