MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / B

Class B

examples/asyncio/async_orm.py:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40
41class B(Base):
42 __tablename__ = "b"
43 id: Mapped[int] = mapped_column(primary_key=True)
44 a_id: Mapped[int] = mapped_column(ForeignKey("a.id"))
45 data: Mapped[Optional[str]]
46
47
48async def async_main():

Callers 1

async_mainFunction · 0.70

Calls 2

mapped_columnFunction · 0.90
ForeignKeyClass · 0.90

Tested by

no test coverage detected