dbfantasytransaction

package
v0.0.0-...-8bbd0fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(d *FantasyTransaction) error

Delete deletes a record from the database

func Insert

func Insert(d *FantasyTransaction) error

Insert will create a new record in the database

func Save

func Save(s *FantasyTransaction) error

func Update

func Update(s *FantasyTransaction) error

Update will update a record in the database

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

func ReadByID

func ReadByID(ID int64) (*FantasyTransaction, error)

ReadByID reads by id column

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL