showstorage

package
v0.0.0-...-e934dfe Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTable

func SetupTable(db *sqlx.DB)

SetupTable creates the shows table if it does not exist.

func Update

func Update(db *sqlx.DB, show *Show) (sql.Result, error)

Update stores new data in the database.

Types

type Show

type Show struct {
	Name         string `db:"name"`
	LatestSeason int    `db:"latest_season"`
	NextEpisode  int    `db:"next_episode"`
	Path         string `dB:"path"`
}

Show stores a TV Show name, path to the files, and the next season and episode number.

func Find

func Find(db *sqlx.DB, name string) (*Show, error)

Find looks up a show by name.

Jump to

Keyboard shortcuts

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