dbloveemstandings

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(d *LoveEmStandings) error

Delete deletes a record from the database

func Insert

func Insert(d *LoveEmStandings) error

Insert will create a new record in the database

func Save

func Save(s *LoveEmStandings) error

func Update

func Update(s *LoveEmStandings) error

Update will update a record in the database

Types

type LoveEmStandings

type LoveEmStandings struct {
	LoveEmStandingsID int64                `db:"loveem_standings_id"`
	FantasyTeamID     int64                `db:"fantasy_team_id"`
	WeekID            int64                `db:"week_id"`
	WeekGamePts       database.NullFloat64 `db:"week_game_pts"`
	TotalGamePts      database.NullFloat64 `db:"total_game_pts"`
	LeagueRanking     database.NullInt64   `db:"league_ranking"`
}

func ReadAll

func ReadAll() ([]LoveEmStandings, error)

ReadAll reads all records in the database

func ReadByID

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

ReadByID reads by id column

func ReadLeagueWeekStandings

func ReadLeagueWeekStandings(leagueID, weekID int64) ([]LoveEmStandings, error)

ReadLeagueWeekStandings reads all records in the database for a given leagueId and weekId

Jump to

Keyboard shortcuts

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