72 std::shared_ptr<DatabaseConnection>
db_conn;
Repository class for managing League entities in the database.
Definition league_repository.h:22
void insertLeague(const League &league) const
Insert a new league into the database.
Definition league_repository.cpp:72
void resetAllLeaguePoints() const
Reset points for all leagues in the database.
Definition league_repository.cpp:172
void loadLeaguePoints(League &league) const
Load the points of teams for a specific league from the database.
Definition league_repository.cpp:139
void saveLeaguePoints(const League &league) const
Save the points of teams in a league to the database.
Definition league_repository.cpp:112
void saveTeamMemberships(const League &league) const
Persists the league membership (Teams.league_id) of its teams.
Definition league_repository.cpp:157
void loadTeamsForLeague(League &league) const
Definition league_repository.cpp:56
std::shared_ptr< DatabaseConnection > db_conn
Definition league_repository.h:72
void insertLeagueWithId(const League &league) const
Insert a league with a specific ID into the database.
Definition league_repository.cpp:83
std::vector< League > loadAllLeagues() const
Load all leagues from the database.
Definition league_repository.cpp:25
Represents a football league containing teams and a leaderboard.
Definition league.h:41