PlaylistPostgres

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlaylistPostgresRepo

func NewPlaylistPostgresRepo(db *sqlx.DB) domain.PlaylistRepo

Types

type PlaylistRepo

type PlaylistRepo struct {
	Sqlx *sqlx.DB
}

func (PlaylistRepo) AddToPlaylist

func (table PlaylistRepo) AddToPlaylist(userId int64, playlistId int64, trackId int64) error

func (PlaylistRepo) Create

func (table PlaylistRepo) Create(userId int64, playlist *playlistProto.Playlist) error

func (PlaylistRepo) Delete

func (table PlaylistRepo) Delete(userId int64, playlistId int64) error

func (PlaylistRepo) GetAll

func (table PlaylistRepo) GetAll() ([]*playlistProto.Playlist, error)

func (PlaylistRepo) GetAllOfCurrentUser

func (table PlaylistRepo) GetAllOfCurrentUser(userId int64) ([]*playlistProto.Playlist, error)

func (PlaylistRepo) GetLastId

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

func (PlaylistRepo) GetLastIdOfCurrentUser

func (table PlaylistRepo) GetLastIdOfCurrentUser(userId int64) (int64, error)

func (PlaylistRepo) GetSize

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

func (PlaylistRepo) GetSizeOfCurrentUser

func (table PlaylistRepo) GetSizeOfCurrentUser(userId int64) (int64, error)

func (PlaylistRepo) RemoveFromPlaylist

func (table PlaylistRepo) RemoveFromPlaylist(userId int64, playlistId int64, trackId int64) error

func (PlaylistRepo) SelectByIDOfCurrentUser

func (table PlaylistRepo) SelectByIDOfCurrentUser(userId int64, playlistId int64) (*playlistProto.Playlist, error)

func (PlaylistRepo) SelectById

func (table PlaylistRepo) SelectById(playlistId int64) (*playlistProto.Playlist, error)

func (PlaylistRepo) Update

func (table PlaylistRepo) Update(userId int64, playlist *playlistProto.Playlist) error

Jump to

Keyboard shortcuts

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