MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Item

Class Item

test/typing/plain_files/orm/keyfunc_dict.py:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18class Item(Base):
19 __tablename__ = "item"
20
21 id: Mapped[int] = mapped_column(primary_key=True)
22
23 notes: Mapped[Dict[str, "Note"]] = relationship(
24 collection_class=attribute_keyed_dict("keyword"),
25 cascade="all, delete-orphan",
26 )
27
28
29class Note(Base):

Callers 1

keyfunc_dict.pyFile · 0.70

Calls 3

mapped_columnFunction · 0.90
relationshipFunction · 0.90
attribute_keyed_dictFunction · 0.90

Tested by

no test coverage detected