insert

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoQuery = errors.New("query statement is empty")

Functions

func Prods added in v1.7.0

func Prods(p *releases.Productions) error

Prods adds the Demozoo releasers productions to the database. API: https://demozoo.org/api/v1/releasers/

Types

type Record

type Record struct {
	WebIDDemozoo uint   // Demozoo production id
	ID           string // MySQL auto increment id
	UUID         string // record unique id
	Title        string
	Platform     string
	Section      string
	GroupFor     string
	GroupBy      string
	CreditText   []string
	CreditCode   []string
	CreditArt    []string
	CreditAudio  []string
	IssuedYear   uint16
	IssuedMonth  uint8
	IssuedDay    uint8
}

Record contains the values for a new Demozoo releaser production to be added to the database file table.

func Prod added in v1.7.0

func Prod(prod releases.ProductionV1) Record

Prod mutates the raw Demozoo API releaser production data to database ready values.

func (*Record) Insert

func (r *Record) Insert() (sql.Result, error)

Insert the new Demozoo releaser production into the database.

Jump to

Keyboard shortcuts

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