MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Address

Class Address

test/orm/test_froms.py:4078–4085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4076
4077 def go(include_property, correlate_style, include_from):
4078 class Address(Base):
4079 __tablename__ = "addresses"
4080
4081 id = Column(Integer, primary_key=True)
4082 user_id = Column(
4083 Integer, ForeignKey("users.id"), nullable=False
4084 )
4085 city = Column(Text)
4086
4087 class User(Base):
4088 __tablename__ = "users"

Callers 8

test_joinMethod · 0.70
goMethod · 0.70
test_joinMethod · 0.70
goMethod · 0.70
test_external_columnsMethod · 0.70

Calls 2

ColumnClass · 0.90
ForeignKeyClass · 0.90

Tested by 8

test_joinMethod · 0.56
goMethod · 0.56
test_joinMethod · 0.56
goMethod · 0.56
test_external_columnsMethod · 0.56