Documentation
¶
Index ¶
- type DB
- func (d DB) GetGameWithID(ctx context.Context, id string) (api.Game, error)
- func (d DB) GetGameWithNBAID(ctx context.Context, nbaID string) (api.Game, error)
- func (d DB) GetGamesWithIDs(ctx context.Context, ids []string) ([]api.Game, error)
- func (d DB) GetPlayerWithID(ctx context.Context, playerID string) (api.Player, error)
- func (d DB) GetPlayersWithIDs(ctx context.Context, ids []string) ([]api.Player, error)
- func (d DB) GetTeamSeasonsWithIDs(ctx context.Context, teamSeasonIDs []string) ([]api.TeamSeason, error)
- func (d DB) GetTeamWithID(ctx context.Context, teamID string) (api.Team, error)
- func (d DB) GetTeamsWithIDs(ctx context.Context, ids []uuid.UUID) ([]api.Team, error)
- func (d DB) GetTeamsWithNBAIDs(ctx context.Context, ids []int) ([]api.Team, error)
- func (d DB) List(ctx context.Context) ([]api.Game, error)
- func (d DB) ListPlayers(ctx context.Context) ([]api.Player, error)
- func (d DB) ListTeams(ctx context.Context) ([]api.Team, error)
- func (d DB) NBATeamIDMappings(ctx context.Context) (map[string]string, error)
- func (d DB) UpdateArenas(ctx context.Context, arenas []arena.ArenaUpdate) ([]api.Arena, error)
- func (d DB) UpdateFranchises(ctx context.Context, franchiseUpdates []franchise.FranchiseUpdate) ([]api.Franchise, error)
- func (d DB) UpdateGameReferees(ctx context.Context, gameRefereeUpdates []game_referee.GameRefereeUpdate) ([]game_referee.GameReferee, error)
- func (d DB) UpdateGames(ctx context.Context, gameUpdates []game.GameUpdate) ([]api.Game, error)
- func (d DB) UpdateGamesSummary(ctx context.Context, gameUpdates []game.GameSummaryUpdate) ([]api.Game, error)
- func (d DB) UpdateLeagues(ctx context.Context, leagueUpdates []league.LeagueUpdate) ([]league.League, error)
- func (d DB) UpdatePlayByPlays(ctx context.Context, playByPlayUpdates []playbyplay.PlayByPlayUpdate) ([]api.PlayByPlay, error)
- func (d DB) UpdatePlayers(ctx context.Context, players []api.Player) ([]api.Player, error)
- func (d DB) UpdateReferees(ctx context.Context, refereeUpdates []referee.RefereeUpdate) ([]api.Referee, error)
- func (d DB) UpdateScheduledGames(ctx context.Context, gameUpdates []game.GameScheduledUpdate) ([]api.Game, error)
- func (d DB) UpdateSeasonWeeks(ctx context.Context, seasonWeekUpdates []season.SeasonWeekUpdate) ([]season.SeasonWeek, error)
- func (d DB) UpdateSeasons(ctx context.Context, seasonUpdates []season.SeasonUpdate) ([]season.Season, error)
- func (d DB) UpdateTeamGameStatsTotals(ctx context.Context, ...) ([]team_game_stats.TeamGameStatsTotal, error)
- func (d DB) UpdateTeamGameStatsTotalsOld(ctx context.Context, ...) ([]team_game_stats.TeamGameStatsTotal, error)
- func (d DB) UpdateTeamSeasons(ctx context.Context, teamSeasonUpdates []team_season.TeamSeasonUpdate) ([]api.TeamSeason, error)
- func (d DB) UpdateTeams(ctx context.Context, teams []team.TeamUpdate) ([]api.Team, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (DB) GetGameWithID ¶
func (DB) GetGameWithNBAID ¶
func (DB) GetGamesWithIDs ¶
func (DB) GetPlayerWithID ¶
func (DB) GetPlayersWithIDs ¶
func (DB) GetTeamSeasonsWithIDs ¶
func (DB) GetTeamWithID ¶
func (DB) GetTeamsWithIDs ¶
func (DB) GetTeamsWithNBAIDs ¶
func (DB) NBATeamIDMappings ¶
func (DB) UpdateArenas ¶
func (DB) UpdateFranchises ¶
func (DB) UpdateGameReferees ¶
func (d DB) UpdateGameReferees(ctx context.Context, gameRefereeUpdates []game_referee.GameRefereeUpdate) ([]game_referee.GameReferee, error)
func (DB) UpdateGames ¶
func (DB) UpdateGamesSummary ¶
func (DB) UpdateLeagues ¶
func (DB) UpdatePlayByPlays ¶
func (d DB) UpdatePlayByPlays(ctx context.Context, playByPlayUpdates []playbyplay.PlayByPlayUpdate) ([]api.PlayByPlay, error)
func (DB) UpdatePlayers ¶
func (DB) UpdateReferees ¶
func (DB) UpdateScheduledGames ¶
func (DB) UpdateSeasonWeeks ¶
func (d DB) UpdateSeasonWeeks(ctx context.Context, seasonWeekUpdates []season.SeasonWeekUpdate) ([]season.SeasonWeek, error)
func (DB) UpdateSeasons ¶
func (DB) UpdateTeamGameStatsTotals ¶
func (d DB) UpdateTeamGameStatsTotals(ctx context.Context, teamGameStatsTotalsUpdates []team_game_stats.TeamGameStatsTotalUpdate) ([]team_game_stats.TeamGameStatsTotal, error)
func (DB) UpdateTeamGameStatsTotalsOld ¶
func (d DB) UpdateTeamGameStatsTotalsOld(ctx context.Context, teamGameStatsTotalsUpdates []team_game_stats.TeamGameStatsTotalUpdateOld) ([]team_game_stats.TeamGameStatsTotal, error)
func (DB) UpdateTeamSeasons ¶
func (d DB) UpdateTeamSeasons(ctx context.Context, teamSeasonUpdates []team_season.TeamSeasonUpdate) ([]api.TeamSeason, error)
func (DB) UpdateTeams ¶
Click to show internal directories.
Click to hide internal directories.