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

Class User

test/ext/test_associationproxy.py:3932–3948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3930 """
3931
3932 class User(decl_base):
3933 __allow_unmapped__ = True
3934
3935 __tablename__ = "user"
3936
3937 id: Mapped[int] = mapped_column(primary_key=True)
3938
3939 user_keyword_associations: Mapped[List[UserKeywordAssociation]] = (
3940 relationship(
3941 back_populates="user",
3942 cascade="all, delete-orphan",
3943 )
3944 )
3945
3946 keywords: AssociationProxy[list[str]] = association_proxy(
3947 "user_keyword_associations", "keyword"
3948 )
3949
3950 UserKeywordAssociation, Keyword = self._keyword_mapping(
3951 User, decl_base

Callers 2

insert_dataMethod · 0.70

Calls 3

mapped_columnFunction · 0.90
relationshipFunction · 0.90
association_proxyFunction · 0.90

Tested by 2

insert_dataMethod · 0.56