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

Class WeatherLocation

examples/sharding/separate_schema_translates.py:70–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69
70class WeatherLocation(Base):
71 __tablename__ = "weather_locations"
72
73 id: Mapped[int] = mapped_column(primary_key=True)
74 continent: Mapped[str]
75 city: Mapped[str]
76
77 reports: Mapped[list[Report]] = relationship(back_populates="location")
78
79 def __init__(self, continent: str, city: str):
80 self.continent = continent
81 self.city = city
82
83
84class Report(Base):

Callers 1

mainFunction · 0.70

Calls 2

mapped_columnFunction · 0.90
relationshipFunction · 0.90

Tested by

no test coverage detected