Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(d *FantasyHeadToHeadStandings) error
Delete deletes a record from the database
func Insert ¶
func Insert(d *FantasyHeadToHeadStandings) error
Insert will create a new record in the database
func Save ¶
func Save(s *FantasyHeadToHeadStandings) error
func Update ¶
func Update(s *FantasyHeadToHeadStandings) error
Update will update a record in the database
Types ¶
type FantasyHeadToHeadStandings ¶
type FantasyHeadToHeadStandings struct { FantasyHeadToHeadStandingsID int64 `db:"fantasy_headtohead_standings_id"` FantasyTeamID int64 `db:"fantasy_team_id"` WeekID int64 `db:"week_id"` WeekFantasyPts database.NullFloat64 `db:"week_fantasy_pts"` TotalFantasyPts database.NullFloat64 `db:"total_fantasy_pts"` WeekFantasyPtsAgainst database.NullFloat64 `db:"week_fantasy_pts_against"` TotalFantasyPtsAgainst database.NullFloat64 `db:"total_fantasy_pts_against"` Wins int64 `db:"wins"` Losses int64 `db:"losses"` Ties int64 `db:"ties"` WeekHiScore database.NullInt64 `db:"week_hi_score"` TotalHiScore database.NullInt64 `db:"total_hi_score"` LeagueRanking database.NullInt64 `db:"league_ranking"` CurrentStreak database.NullInt64 `db:"current_streak"` LastFive database.NullString `db:"last_five"` }
func ReadAll ¶
func ReadAll() ([]FantasyHeadToHeadStandings, error)
ReadAll reads all records in the database
func ReadByID ¶
func ReadByID(ID int64) (*FantasyHeadToHeadStandings, error)
ReadByID reads by id column
Click to show internal directories.
Click to hide internal directories.