MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / User

Class User

test/typing/plain_files/orm/dynamic_rel.py:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class User(Base):
29 __tablename__ = "user"
30 id: Mapped[int] = mapped_column(primary_key=True)
31 addresses: DynamicMapped[Address] = relationship(
32 cascade="all,delete-orphan"
33 )
34
35
36with Session() as session:

Callers 1

dynamic_rel.pyFile · 0.70

Calls 2

mapped_columnFunction · 0.90
relationshipFunction · 0.90

Tested by

no test coverage detected