Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(d *FantasyLeaguePayoutTeam) error
Delete deletes a record from the database
func Insert ¶
func Insert(d *FantasyLeaguePayoutTeam) error
Insert will create a new record in the database
func Save ¶
func Save(s *FantasyLeaguePayoutTeam) error
func Update ¶
func Update(s *FantasyLeaguePayoutTeam) error
Update will update a record in the database
Types ¶
type FantasyLeaguePayoutTeam ¶
type FantasyLeaguePayoutTeam struct { FantasyLeaguePayoutTeamID int64 `db:"fantasy_league_payout_team_id"` FantasyLeaguePayoutID int64 `db:"fantasy_league_payout_id"` FantasyTeamID database.NullInt64 `db:"fantasy_team_id"` PayoutAmount database.NullFloat64 `db:"payout_amount"` }
func ReadAll ¶
func ReadAll() ([]FantasyLeaguePayoutTeam, error)
ReadAll reads all records in the database
func ReadByID ¶
func ReadByID(ID int64) (*FantasyLeaguePayoutTeam, error)
ReadByID reads by id column
Click to show internal directories.
Click to hide internal directories.