Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(d *FootballPlayerStatsDefense) error
Delete deletes a record from the database
func Insert ¶
func Insert(d *FootballPlayerStatsDefense) error
Insert will create a new record in the database
func Save ¶
func Save(s *FootballPlayerStatsDefense) error
func Update ¶
func Update(s *FootballPlayerStatsDefense) error
Update will update a record in the database
Types ¶
type FootballPlayerStatsDefense ¶
type FootballPlayerStatsDefense struct { FootballPlayerStatsDefenseID int64 `db:"football_player_stats_defense_id"` SeasonID int64 `db:"season_id"` WeekID int64 `db:"week_id"` PlayerID int64 `db:"player_id"` OpponentID int64 `db:"opponent_id"` PointsOwn int64 `db:"points_own"` PointsOpponent int64 `db:"points_opponent"` TotalYards int64 `db:"total_yards"` TotalPlays int64 `db:"total_plays"` PassComp int64 `db:"pass_comp"` PassAttempts int64 `db:"pass_attempts"` PassYards int64 `db:"pass_yards"` PassTDs int64 `db:"pass_tds"` Sacked int64 `db:"sacked"` SackedYardsLost int64 `db:"sacked_yards_lost"` PassesDefensed int64 `db:"passes_defensed"` RushAttempts int64 `db:"rush_attempts"` RushYards int64 `db:"rush_yards"` RushTDs int64 `db:"rush_tds"` TacklesForLoss int64 `db:"tackles_for_loss"` TacklesForLossYardsLost int64 `db:"tackles_for_loss_yards_lost"` Interceptions int64 `db:"interceptions"` InterceptionsReturnYards int64 `db:"interceptions_return_yards"` InterceptionsReturnTDs int64 `db:"interceptions_return_tds"` FumblesForced int64 `db:"fumbles_forced"` FumbledRecovered int64 `db:"fumbles_recovered"` FumblesReturnYards int64 `db:"fumbles_return_yards"` FumblesReturnTDs int64 `db:"fumbles_return_tds"` Safeties int64 `db:"safeties"` TwoPtConversions int64 `db:"two_pt_conversions"` TwoPtAttempts int64 `db:"two_pt_attempts"` Penalties int64 `db:"penalties"` PenaltiesYards int64 `db:"penalties_yards"` XPMade int64 `db:"xp_made"` XPAttempts int64 `db:"xp_attempts"` FGMade int64 `db:"fg_made"` FGAttempts int64 `db:"fg_attempts"` FirstDownsTotal int64 `db:"first_downs_total"` FirstDownsRushing int64 `db:"first_downs_rushing"` FirstDownsPassing int64 `db:"first_downs_passing"` FirstDownsPenalty int64 `db:"first_downs_penalty"` ThirdDownConversions int64 `db:"third_down_conversions"` ThirdDownConversionsAttempts int64 `db:"third_down_conversions_attempts"` FourthDownConversions int64 `db:"fourth_down_conversions"` FourthDownConversionsAttempts int64 `db:"fourth_down_conversions_attempts"` TimeOfPossession int64 `db:"time_of_possession"` TDsScored int64 `db:"tds_scored"` PtsScoredByDefense int64 `db:"pts_scored_by_defense"` PtsScoredByOpponentsDefense int64 `db:"pts_scored_by_opponents_defense"` TDDistances int64 `db:"td_distances"` PtsAllowedFirst int64 `db:"pts_allowed_first"` PtsAllowedSecond int64 `db:"pts_allowed_second"` PtsAllowedThird int64 `db:"pts_allowed_third"` PtsAllowedFourth int64 `db:"pts_allowed_fourth"` PtsAllowedOT int64 `db:"pts_allowed_ot"` }
func ReadAll ¶
func ReadAll() ([]FootballPlayerStatsDefense, error)
ReadAll reads all records in the database
func ReadByID ¶
func ReadByID(ID int64) (*FootballPlayerStatsDefense, error)
ReadByID reads by id column
Click to show internal directories.
Click to hide internal directories.