dbteamstandings

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 *TeamStandings) error

Delete deletes a record from the database

func Insert

func Insert(d *TeamStandings) error

Insert will create a new record in the database

func Save

func Save(s *TeamStandings) error

func Update

func Update(s *TeamStandings) error

Update will update a record in the database

Types

type TeamStandings

type TeamStandings struct {
	TeamStandingsID        int64                `db:"team_standings_id"`
	TeamConferenceSeasonID int64                `db:"team_conference_season_id"`
	WeekNumber             database.NullInt64   `db:"week_number"`
	Wins                   database.NullInt64   `db:"wins"`
	Losses                 database.NullInt64   `db:"losses"`
	Ties                   database.NullInt64   `db:"ties"`
	WinPercentage          database.NullFloat64 `db:"win_percentage"`
	PointsFor              database.NullFloat64 `db:"points_for"`
	PointsAgainst          database.NullFloat64 `db:"points_against"`
	HomeWins               database.NullInt64   `db:"home_wins"`
	HomeLosses             database.NullInt64   `db:"home_losses"`
	AwayWins               database.NullInt64   `db:"away_wins"`
	AwayLosses             database.NullInt64   `db:"away_losses"`
}

func ReadAll

func ReadAll() ([]TeamStandings, error)

ReadAll reads all records in the database

func ReadByID

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

ReadByID reads by id column

Jump to

Keyboard shortcuts

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