MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Parent

Class Parent

examples/versioned_rows/versioned_rows.py:82–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82class Parent(Base):
83 __tablename__ = "parent"
84 id = Column(Integer, primary_key=True)
85 child_id = Column(Integer, ForeignKey("child.id"))
86 child = relationship("Child", backref=backref("parent", uselist=False))
87
88
89class Child(Versioned, Base):

Callers 1

versioned_rows.pyFile · 0.70

Calls 4

ColumnClass · 0.90
ForeignKeyClass · 0.90
relationshipFunction · 0.90
backrefFunction · 0.90

Tested by

no test coverage detected