rds

package
v0.0.0-...-c557f2d Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(mode string) error

Types

type AddAlbumParams

type AddAlbumParams struct {
	Title  string
	Artist string
}

type AddRecordingParams

type AddRecordingParams struct {
	Path   string
	Song   string
	Artist string
	Album  string
	Cddb   string
	Track  int64
}

type Album

type Album struct {
	Title  string
	Artist string
}

type Artist

type Artist struct {
	Name string
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type ListRecordingsMatchingAlbumRow

type ListRecordingsMatchingAlbumRow struct {
	Path  string
	Song  string
	Album string
	Track int64
}

type ListRecordingsMatchingArtistRow

type ListRecordingsMatchingArtistRow struct {
	Path  string
	Song  string
	Album string
	Track int64
}

type ListRecordingsMatchingSongRow

type ListRecordingsMatchingSongRow struct {
	Path  string
	Song  string
	Album string
	Track int64
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}
var Database *Queries

func New

func New(db DBTX) *Queries

func (*Queries) AddAlbum

func (q *Queries) AddAlbum(ctx context.Context, arg AddAlbumParams) error

func (*Queries) AddArtist

func (q *Queries) AddArtist(ctx context.Context, name string) error

func (*Queries) AddRecording

func (q *Queries) AddRecording(ctx context.Context, arg AddRecordingParams) error

func (*Queries) AddSong

func (q *Queries) AddSong(ctx context.Context, title string) error

func (*Queries) ListRecordingsMatchingAlbum

func (q *Queries) ListRecordingsMatchingAlbum(ctx context.Context, album string) ([]ListRecordingsMatchingAlbumRow, error)

func (*Queries) ListRecordingsMatchingArtist

func (q *Queries) ListRecordingsMatchingArtist(ctx context.Context, artist string) ([]ListRecordingsMatchingArtistRow, error)

func (*Queries) ListRecordingsMatchingSong

func (q *Queries) ListRecordingsMatchingSong(ctx context.Context, song string) ([]ListRecordingsMatchingSongRow, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type Recording

type Recording struct {
	Path       string
	Song       string
	Artist     string
	Album      string
	Cddb       string
	Track      int64
	Constraint interface{}
}

type Song

type Song struct {
	Title string
}

Jump to

Keyboard shortcuts

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