ArtistPostgres

package
v0.0.0-...-704a905 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArtistPostgresRepo

func NewArtistPostgresRepo(db *sqlx.DB) domain.ArtistRepo

Types

type ArtistRepo

type ArtistRepo struct {
	Sqlx *sqlx.DB
}

func (ArtistRepo) AddToFavorites

func (table ArtistRepo) AddToFavorites(artistId int64, userId int64) error

func (ArtistRepo) Create

func (table ArtistRepo) Create(dom *artistProto.Artist) error

----------------------------------------------------------------------

func (ArtistRepo) Delete

func (table ArtistRepo) Delete(id int64) error

func (ArtistRepo) GetAll

func (table ArtistRepo) GetAll() ([]*artistProto.Artist, error)

func (ArtistRepo) GetFavorites

func (table ArtistRepo) GetFavorites(userId int64) ([]*artistProto.Artist, error)

func (ArtistRepo) GetLastId

func (table ArtistRepo) GetLastId() (int64, error)

func (ArtistRepo) GetPopular

func (table ArtistRepo) GetPopular() ([]*artistProto.Artist, error)

func (ArtistRepo) GetSize

func (table ArtistRepo) GetSize() (int64, error)

func (ArtistRepo) Like

func (table ArtistRepo) Like(artistId int64, userId int64) error

func (ArtistRepo) LikeCheckByUser

func (table ArtistRepo) LikeCheckByUser(artistId int64, userId int64) (bool, error)

func (ArtistRepo) Listen

func (table ArtistRepo) Listen(trackId int64) error

func (ArtistRepo) RemoveFromFavorites

func (table ArtistRepo) RemoveFromFavorites(trackId int64, userId int64) error

func (ArtistRepo) SearchByName

func (table ArtistRepo) SearchByName(title string) ([]*artistProto.Artist, error)

func (ArtistRepo) SelectByID

func (table ArtistRepo) SelectByID(id int64) (*artistProto.Artist, error)

func (ArtistRepo) Update

func (table ArtistRepo) Update(dom *artistProto.Artist) error

Jump to

Keyboard shortcuts

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