dbvenue

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(v *Venue) error

Delete deletes a venue from the database

func Insert

func Insert(v *Venue) error

Insert will create a new record in the database

func Save

func Save(s *Venue) error

func Update

func Update(s *Venue) error

Update will update a record in the database

Types

type Venue

type Venue struct {
	VenueID int64               `db:"venue_id"`
	Name    string              `db:"name"`
	City    database.NullString `db:"city"`
	State   database.NullString `db:"state"`
}

func ReadAll

func ReadAll() ([]Venue, error)

ReadAll reads all venues in the database

func ReadByID

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

ReadByID reads venue by id column

Jump to

Keyboard shortcuts

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