72 std::shared_ptr<DatabaseConnection>
db_conn;
Manages the match calendar for a season.
Definition calendar.h:133
Repository class for managing Match and Calendar entities in the database, plus the per-fixture match...
Definition fixture_repository.h:27
void saveCalendar(const Calendar &calendar) const
Save the calendar to the database.
Definition fixture_repository.cpp:185
std::optional< MatchReport > loadMatchReport(const GameDateValue &date, TeamID home_id, TeamID away_id) const
Loads the report of one fixture, if it was stored.
Definition fixture_repository.cpp:338
void loadCalendar(Calendar &calendar) const
Load the calendar from the database.
Definition fixture_repository.cpp:284
void saveMatchReports(const std::vector< MatchReport > &reports) const
Inserts or replaces match reports (keyed by date and teams).
Definition fixture_repository.cpp:294
std::vector< MatchReport > loadTeamMatchReports(uint16_t season, TeamID team_id) const
Loads all stored reports of a team in a season, by date.
Definition fixture_repository.cpp:354
void insertFixture(const Match &match) const
Insert a match fixture into the database.
Definition fixture_repository.cpp:141
std::vector< Match > loadAllMatches() const
Load all matches from the database.
Definition fixture_repository.cpp:149
std::shared_ptr< DatabaseConnection > db_conn
Definition fixture_repository.h:72
Represents a football match between two teams.
Definition match.h:38
Represents a specific date in the game world.
Definition gamedate.h:20
Structured summary of a played fixture, persisted per fixture.
Definition match_report.h:93
uint16_t TeamID
Type alias for Team identifiers.
Definition types.h:18