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

Class A

examples/asyncio/async_orm_writeonly.py:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29class A(Base):
30 __tablename__ = "a"
31
32 id: Mapped[int] = mapped_column(primary_key=True)
33 data: Mapped[Optional[str]]
34 create_date: Mapped[datetime.datetime] = mapped_column(
35 server_default=func.now()
36 )
37
38 # collection relationships are declared with WriteOnlyMapped. There
39 # is no separate collection type
40 bs: WriteOnlyMapped[B] = relationship()
41
42
43class B(Base):

Callers 1

async_mainFunction · 0.70

Calls 3

mapped_columnFunction · 0.90
relationshipFunction · 0.90
nowMethod · 0.80

Tested by

no test coverage detected