MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Graph

Class Graph

test/ext/test_associationproxy.py:2606–2619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2604 return not isinstance(other, Point) or not self.__eq__(other)
2605
2606 class Graph(cls.DeclarativeBasic):
2607 __tablename__ = "graph"
2608 id = Column(
2609 Integer, primary_key=True, test_needs_autoincrement=True
2610 )
2611 name = Column(String(30))
2612
2613 point_data = relationship("PointData")
2614
2615 points = association_proxy(
2616 "point_data",
2617 "point",
2618 creator=lambda point: PointData(point=point),
2619 )
2620
2621 class PointData(ComparableEntity, cls.DeclarativeBasic):
2622 __tablename__ = "point"

Callers 2

test_appendMethod · 0.70
test_accessMethod · 0.70

Calls 5

ColumnClass · 0.90
StringClass · 0.90
relationshipFunction · 0.90
association_proxyFunction · 0.90
PointDataClass · 0.85

Tested by 2

test_appendMethod · 0.56
test_accessMethod · 0.56