dbfantasydraft

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

Delete deletes a record from the database

func Insert

func Insert(d *FantasyDraft) error

Insert will create a new record in the database

func Save

func Save(s *FantasyDraft) error

func Update

func Update(s *FantasyDraft) error

Update will update a record in the database

Types

type FantasyDraft

type FantasyDraft struct {
	FantasyDraftID  int64              `db:"fantasy_draft_id"`
	FantasyLeagueID int64              `db:"fantasy_league_id"`
	Round           int64              `db:"round"`
	Place           int64              `db:"place"`
	FantasyTeamID   database.NullInt64 `db:"fantasy_team_id"`
	PlayerID        database.NullInt64 `db:"player_id"`
}

func ReadAll

func ReadAll() ([]FantasyDraft, error)

ReadAll reads all records in the database

func ReadByID

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

ReadByID reads by id column

Jump to

Keyboard shortcuts

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