AlbumPostgres

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 NewAlbumPostgresRepo

func NewAlbumPostgresRepo(db *sqlx.DB) domain.AlbumRepo

Types

type AlbumRepo

type AlbumRepo struct {
	Sqlx *sqlx.DB
}

func (AlbumRepo) AddToFavorites

func (table AlbumRepo) AddToFavorites(albumId int64, userId int64) error

func (AlbumRepo) CountPopularAlbumOfWeek

func (table AlbumRepo) CountPopularAlbumOfWeek() (bool, error)

func (AlbumRepo) Create

func (table AlbumRepo) Create(dom *albumProto.Album) error

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

func (AlbumRepo) Delete

func (table AlbumRepo) Delete(id int64) error

func (AlbumRepo) GetAlbumsFromArtist

func (table AlbumRepo) GetAlbumsFromArtist(artistId int64) ([]*albumProto.Album, error)

func (AlbumRepo) GetAll

func (table AlbumRepo) GetAll() ([]*albumProto.Album, error)

func (AlbumRepo) GetFavorites

func (table AlbumRepo) GetFavorites(userId int64) ([]*albumProto.Album, error)

func (AlbumRepo) GetLastId

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

func (AlbumRepo) GetPopular

func (table AlbumRepo) GetPopular() ([]*albumProto.Album, error)

func (AlbumRepo) GetPopularAlbumOfWeekTop20

func (table AlbumRepo) GetPopularAlbumOfWeekTop20() ([]*albumProto.Album, error)

func (AlbumRepo) GetSize

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

func (AlbumRepo) Like

func (table AlbumRepo) Like(albumId int64, userId int64) error

func (AlbumRepo) LikeCheckByUser

func (table AlbumRepo) LikeCheckByUser(albumId int64, userId int64) (bool, error)

func (AlbumRepo) Listen

func (table AlbumRepo) Listen(trackId int64) error

func (AlbumRepo) RemoveFromFavorites

func (table AlbumRepo) RemoveFromFavorites(albumId int64, userId int64) error

func (AlbumRepo) SearchByTitle

func (table AlbumRepo) SearchByTitle(title string) ([]*albumProto.Album, error)

func (AlbumRepo) SelectByID

func (table AlbumRepo) SelectByID(id int64) (*albumProto.Album, error)

func (AlbumRepo) Update

func (table AlbumRepo) Update(dom *albumProto.Album) error

Jump to

Keyboard shortcuts

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