MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / A

Class A

test/orm/test_lazy_relations.py:810–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808
809 @registry.mapped
810 class A:
811 __tablename__ = "a"
812
813 id = Column(Integer, primary_key=True)
814 _date = Column(Date, default=func.current_date())
815 b_id = Column(Integer, ForeignKey("b.id"))
816 b = relationship("B")
817
818 @registry.mapped
819 class B:

Callers 1

Calls 4

ColumnClass · 0.90
ForeignKeyClass · 0.90
relationshipFunction · 0.90
current_dateMethod · 0.80

Tested by 1