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

Class WeatherLocation

examples/sharding/asyncio.py:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 2

mapped_columnFunction · 0.90
relationshipFunction · 0.90

Tested by

no test coverage detected