dbconference

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(c *Conference) error

Delete deletes a conference from the database

func Insert

func Insert(c *Conference) error

Insert will create a new record in the database

func Save

func Save(s *Conference) error

func Update

func Update(s *Conference) error

Update will update a record in the database

Types

type Conference

type Conference struct {
	ConferenceID int64               `db:"conference_id"`
	Name         string              `db:"name"`
	Abbreviation database.NullString `db:"abbreviation"`
	ShortName    database.NullString `db:"short_name"`
	ExternalId   database.NullInt64  `db:"external_id"`
	ExternalName database.NullString `db:"external_name"`
	SportLevelId database.NullInt64  `db:"sport_level_id"`
}

func ReadAll

func ReadAll() ([]Conference, error)

ReadAll reads all conferences in the database

func ReadByExternalNameAndSportLevel

func ReadByExternalNameAndSportLevel(externalName string, sportLevelId int64) (*Conference, error)

ReadByExternalNameAndSportLevel reads conference by external_name and sport_level_id columns

func ReadByID

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

ReadByID reads conference by id column

Jump to

Keyboard shortcuts

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