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

Class Graph

test/ext/test_associationproxy.py:2500–2513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2498 return not isinstance(other, Point) or not self.__eq__(other)
2499
2500 class Graph(cls.DeclarativeBasic):
2501 __tablename__ = "graph"
2502 id = Column(
2503 Integer, primary_key=True, test_needs_autoincrement=True
2504 )
2505 name = Column(String(30))
2506
2507 point_data = relationship("PointData")
2508
2509 points = association_proxy(
2510 "point_data",
2511 "point",
2512 creator=lambda point: PointData(point=point),
2513 )
2514
2515 class PointData(ComparableEntity, cls.DeclarativeBasic):
2516 __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