Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Insert ¶
func Insert(d *FantasyTransaction) error
Insert will create a new record in the database
func Save ¶
func Save(s *FantasyTransaction) error
Types ¶
type FantasyTransaction ¶
type FantasyTransaction struct { FantasyTransactionID int64 `db:"fantasy_transaction_id"` FantasyLeagueID int64 `db:"fantasy_league_id"` FantasyTeamID int64 `db:"fantasy_team_id"` WeekID database.NullInt64 `db:"week_id"` TransactionDate time.Time `db:"transaction_date"` DropType database.NullString `db:"drop_type"` DropPlayerID database.NullInt64 `db:"drop_player_id"` PickupType database.NullString `db:"pu_type"` PickupPlayerID database.NullInt64 `db:"pu_player_id"` }
func ReadAll ¶
func ReadAll() ([]FantasyTransaction, error)
ReadAll reads all records in the database
Click to show internal directories.
Click to hide internal directories.