dbconferenceseason

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(y *ConferenceSeason) error

Delete deletes a conferenceseason from the database

func Insert

func Insert(y *ConferenceSeason) error

Insert will create a new record in the database

func Save

func Save(s *ConferenceSeason) error

func Update

func Update(s *ConferenceSeason) error

Update will update a record in the database

Types

type ConferenceSeason

type ConferenceSeason struct {
	ConferenceSeasonID int64              `db:"conference_season_id"`
	ConferenceID       int64              `db:"conference_id"`
	SeasonID           int64              `db:"season_id"`
	DisplayOrder       database.NullInt64 `db:"display_order"`
}

func ReadAll

func ReadAll() ([]ConferenceSeason, error)

ReadAll reads all records in the database

func ReadByConfSeason

func ReadByConfSeason(confId, seasonId int64) (*ConferenceSeason, error)

ReadByConfDivSeason reads conferenceseason by the conference_id, season_id columns

func ReadByConfShortName

func ReadByConfShortName(shortName, year string) (*ConferenceSeason, error)

ReadByConfShortName reads conferenceseason by the short_name of the conf and year

func ReadByID

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

ReadByID reads conferenceseason by id column

Jump to

Keyboard shortcuts

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