queries

package
v0.0.0-...-5f09b6c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(alb Album) (int64, error)

addAlbum adds the specified album to the database, returning the album ID of the new entry

Types

type Album

type Album struct {
	ID     int64
	Title  string
	Artist string
	Price  float32
}

func AlbumByID

func AlbumByID(id int64) (Album, error)

albumByID queries for the album with the specified ID.

func AllAlbums

func AllAlbums() ([]Album, error)

albumsByArtist queries for albums that have the specified artist name.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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