Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(d *FantasyFootballPlayerStats) error
Delete deletes a record from the database
func Insert ¶
func Insert(d *FantasyFootballPlayerStats) error
Insert will create a new record in the database
func Save ¶
func Save(s *FantasyFootballPlayerStats) error
func Update ¶
func Update(s *FantasyFootballPlayerStats) error
Update will update a record in the database
Types ¶
type FantasyFootballPlayerStats ¶
type FantasyFootballPlayerStats struct { FantasyFootballPlayerStatsID int64 `db:"fantasy_football_player_stats_id"` WeekID int64 `db:"week_id"` FantasyLeagueID int64 `db:"fantasy_league_id"` PlayerID int64 `db:"player_id"` FantasyPoints float64 `db:"fantasy_points"` }
func ReadAll ¶
func ReadAll() ([]FantasyFootballPlayerStats, error)
ReadAll reads all records in the database
func ReadByID ¶
func ReadByID(ID int64) (*FantasyFootballPlayerStats, error)
ReadByID reads by id column
Click to show internal directories.
Click to hide internal directories.