MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / WeatherLocation

Class WeatherLocation

examples/sharding/separate_tables.py:89–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88
89class WeatherLocation(Base):
90 __tablename__ = "_prefix__weather_locations"
91
92 id: Mapped[int] = mapped_column(primary_key=True, default=id_generator)
93 continent: Mapped[str]
94 city: Mapped[str]
95
96 reports: Mapped[list[Report]] = relationship(back_populates="location")
97
98 def __init__(self, continent: str, city: str):
99 self.continent = continent
100 self.city = city
101
102
103class Report(Base):

Callers 1

mainFunction · 0.70

Calls 2

mapped_columnFunction · 0.90
relationshipFunction · 0.90

Tested by

no test coverage detected