Documentation
¶
Index ¶
- type ApiKey
- type Artist
- type ArtistAlias
- type ArtistRelease
- type ArtistTrack
- type ArtistsOnlyPlayedOnceInYearParams
- type ArtistsOnlyPlayedOnceInYearRow
- type ArtistsWithName
- type AssociateArtistToReleaseParams
- type AssociateArtistToTrackParams
- type CountListensFromArtistParams
- type CountListensFromReleaseParams
- type CountListensFromTrackParams
- type CountListensParams
- type CountTimeListenedParams
- type CountTimeListenedToArtistParams
- type CountTimeListenedToReleaseParams
- type CountTimeListenedToTrackParams
- type CountTopArtistsParams
- type CountTopReleasesParams
- type CountTopTracksByArtistParams
- type CountTopTracksByReleaseParams
- type CountTopTracksParams
- type DBTX
- type DeleteArtistAliasParams
- type DeleteConflictingArtistReleasesParams
- type DeleteConflictingArtistTracksParams
- type DeleteListenParams
- type DeleteReleaseAliasParams
- type DeleteTrackAliasParams
- type GetArtistByMbzIDRow
- type GetArtistByNameRow
- type GetArtistCountInYearParams
- type GetArtistRow
- type GetArtistWithLongestGapInYearParams
- type GetArtistWithLongestGapInYearRow
- type GetArtistsWithOnlyOnePlayInYearRow
- type GetFirstListenInYearRow
- type GetLastListensFromArtistPaginatedParams
- type GetLastListensFromArtistPaginatedRow
- type GetLastListensFromReleasePaginatedParams
- type GetLastListensFromReleasePaginatedRow
- type GetLastListensFromTrackPaginatedParams
- type GetLastListensFromTrackPaginatedRow
- type GetLastListensPaginatedParams
- type GetLastListensPaginatedRow
- type GetListenPercentageInTimeWindowInYearParams
- type GetListenPercentageInTimeWindowInYearRow
- type GetListensExportPageParams
- type GetListensExportPageRow
- type GetMostReplayedTrackInYearParams
- type GetMostReplayedTrackInYearRow
- type GetPercentageOfTotalListensFromTopArtistsInYearParams
- type GetPercentageOfTotalListensFromTopArtistsInYearRow
- type GetPercentageOfTotalListensFromTopTracksInYearParams
- type GetPercentageOfTotalListensFromTopTracksInYearRow
- type GetReleaseArtistsRow
- type GetReleaseByArtistAndTitleParams
- type GetReleaseByArtistAndTitlesParams
- type GetReleaseRow
- type GetReleasesWithoutImagesParams
- type GetReleasesWithoutImagesRow
- type GetTopArtistsPaginatedParams
- type GetTopArtistsPaginatedRow
- type GetTopReleasesFromArtistParams
- type GetTopReleasesFromArtistRow
- type GetTopReleasesPaginatedParams
- type GetTopReleasesPaginatedRow
- type GetTopTracksByArtistPaginatedParams
- type GetTopTracksByArtistPaginatedRow
- type GetTopTracksInReleasePaginatedParams
- type GetTopTracksInReleasePaginatedRow
- type GetTopTracksPaginatedParams
- type GetTopTracksPaginatedRow
- type GetTrackArtistsRow
- type GetTrackByTitleAndArtistsParams
- type GetTrackRow
- type GetTracksPlayedAtLeastOncePerMonthInYearRow
- type GetUserBySessionRow
- type GetWeekWithMostListensInYearParams
- type GetWeekWithMostListensInYearRow
- type InsertApiKeyParams
- type InsertArtistAliasParams
- type InsertArtistParams
- type InsertListenParams
- type InsertReleaseAliasParams
- type InsertReleaseParams
- type InsertSessionParams
- type InsertTrackAliasParams
- type InsertTrackParams
- type InsertUserParams
- type Listen
- type ListenActivityForArtistParams
- type ListenActivityForArtistRow
- type ListenActivityForReleaseParams
- type ListenActivityForReleaseRow
- type ListenActivityForTrackParams
- type ListenActivityForTrackRow
- type ListenActivityParams
- type ListenActivityRow
- type NullRole
- type Queries
- func (q *Queries) ArtistsOnlyPlayedOnceInYear(ctx context.Context, arg ArtistsOnlyPlayedOnceInYearParams) ([]ArtistsOnlyPlayedOnceInYearRow, error)
- func (q *Queries) AssociateArtistToRelease(ctx context.Context, arg AssociateArtistToReleaseParams) error
- func (q *Queries) AssociateArtistToTrack(ctx context.Context, arg AssociateArtistToTrackParams) error
- func (q *Queries) CleanOrphanedEntries(ctx context.Context) error
- func (q *Queries) CountApiKeys(ctx context.Context, userID int32) (int64, error)
- func (q *Queries) CountListens(ctx context.Context, arg CountListensParams) (int64, error)
- func (q *Queries) CountListensFromArtist(ctx context.Context, arg CountListensFromArtistParams) (int64, error)
- func (q *Queries) CountListensFromRelease(ctx context.Context, arg CountListensFromReleaseParams) (int64, error)
- func (q *Queries) CountListensFromTrack(ctx context.Context, arg CountListensFromTrackParams) (int64, error)
- func (q *Queries) CountReleasesFromArtist(ctx context.Context, artistID int32) (int64, error)
- func (q *Queries) CountTimeListened(ctx context.Context, arg CountTimeListenedParams) (int64, error)
- func (q *Queries) CountTimeListenedToArtist(ctx context.Context, arg CountTimeListenedToArtistParams) (int64, error)
- func (q *Queries) CountTimeListenedToRelease(ctx context.Context, arg CountTimeListenedToReleaseParams) (int64, error)
- func (q *Queries) CountTimeListenedToTrack(ctx context.Context, arg CountTimeListenedToTrackParams) (int64, error)
- func (q *Queries) CountTopArtists(ctx context.Context, arg CountTopArtistsParams) (int64, error)
- func (q *Queries) CountTopReleases(ctx context.Context, arg CountTopReleasesParams) (int64, error)
- func (q *Queries) CountTopTracks(ctx context.Context, arg CountTopTracksParams) (int64, error)
- func (q *Queries) CountTopTracksByArtist(ctx context.Context, arg CountTopTracksByArtistParams) (int64, error)
- func (q *Queries) CountTopTracksByRelease(ctx context.Context, arg CountTopTracksByReleaseParams) (int64, error)
- func (q *Queries) CountUsers(ctx context.Context) (int64, error)
- func (q *Queries) DeleteApiKey(ctx context.Context, id int32) error
- func (q *Queries) DeleteArtist(ctx context.Context, id int32) error
- func (q *Queries) DeleteArtistAlias(ctx context.Context, arg DeleteArtistAliasParams) error
- func (q *Queries) DeleteConflictingArtistReleases(ctx context.Context, arg DeleteConflictingArtistReleasesParams) error
- func (q *Queries) DeleteConflictingArtistTracks(ctx context.Context, arg DeleteConflictingArtistTracksParams) error
- func (q *Queries) DeleteListen(ctx context.Context, arg DeleteListenParams) error
- func (q *Queries) DeleteRelease(ctx context.Context, id int32) error
- func (q *Queries) DeleteReleaseAlias(ctx context.Context, arg DeleteReleaseAliasParams) error
- func (q *Queries) DeleteReleasesFromArtist(ctx context.Context, artistID int32) error
- func (q *Queries) DeleteSession(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DeleteTrack(ctx context.Context, id int32) error
- func (q *Queries) DeleteTrackAlias(ctx context.Context, arg DeleteTrackAliasParams) error
- func (q *Queries) DeleteUser(ctx context.Context, id int32) error
- func (q *Queries) GetAllApiKeysByUserID(ctx context.Context, id int32) ([]ApiKey, error)
- func (q *Queries) GetAllArtistAliases(ctx context.Context, artistID int32) ([]ArtistAlias, error)
- func (q *Queries) GetAllReleaseAliases(ctx context.Context, releaseID int32) ([]ReleaseAlias, error)
- func (q *Queries) GetAllTrackAliases(ctx context.Context, trackID int32) ([]TrackAlias, error)
- func (q *Queries) GetAllTracksFromArtist(ctx context.Context, artistID int32) ([]TracksWithTitle, error)
- func (q *Queries) GetArtist(ctx context.Context, id int32) (GetArtistRow, error)
- func (q *Queries) GetArtistAlias(ctx context.Context, alias string) (ArtistAlias, error)
- func (q *Queries) GetArtistByImage(ctx context.Context, image *uuid.UUID) (Artist, error)
- func (q *Queries) GetArtistByMbzID(ctx context.Context, musicbrainzID *uuid.UUID) (GetArtistByMbzIDRow, error)
- func (q *Queries) GetArtistByName(ctx context.Context, alias string) (GetArtistByNameRow, error)
- func (q *Queries) GetArtistCountInYear(ctx context.Context, arg GetArtistCountInYearParams) (int64, error)
- func (q *Queries) GetArtistWithLongestGapInYear(ctx context.Context, arg GetArtistWithLongestGapInYearParams) (GetArtistWithLongestGapInYearRow, error)
- func (q *Queries) GetArtistsWithOnlyOnePlayInYear(ctx context.Context) ([]GetArtistsWithOnlyOnePlayInYearRow, error)
- func (q *Queries) GetFirstListenInYear(ctx context.Context) (GetFirstListenInYearRow, error)
- func (q *Queries) GetLastListensFromArtistPaginated(ctx context.Context, arg GetLastListensFromArtistPaginatedParams) ([]GetLastListensFromArtistPaginatedRow, error)
- func (q *Queries) GetLastListensFromReleasePaginated(ctx context.Context, arg GetLastListensFromReleasePaginatedParams) ([]GetLastListensFromReleasePaginatedRow, error)
- func (q *Queries) GetLastListensFromTrackPaginated(ctx context.Context, arg GetLastListensFromTrackPaginatedParams) ([]GetLastListensFromTrackPaginatedRow, error)
- func (q *Queries) GetLastListensPaginated(ctx context.Context, arg GetLastListensPaginatedParams) ([]GetLastListensPaginatedRow, error)
- func (q *Queries) GetListenPercentageInTimeWindowInYear(ctx context.Context, arg GetListenPercentageInTimeWindowInYearParams) (GetListenPercentageInTimeWindowInYearRow, error)
- func (q *Queries) GetListensExportPage(ctx context.Context, arg GetListensExportPageParams) ([]GetListensExportPageRow, error)
- func (q *Queries) GetMostReplayedTrackInYear(ctx context.Context, arg GetMostReplayedTrackInYearParams) (GetMostReplayedTrackInYearRow, error)
- func (q *Queries) GetPercentageOfTotalListensFromTopArtistsInYear(ctx context.Context, arg GetPercentageOfTotalListensFromTopArtistsInYearParams) (GetPercentageOfTotalListensFromTopArtistsInYearRow, error)
- func (q *Queries) GetPercentageOfTotalListensFromTopTracksInYear(ctx context.Context, arg GetPercentageOfTotalListensFromTopTracksInYearParams) (GetPercentageOfTotalListensFromTopTracksInYearRow, error)
- func (q *Queries) GetRelease(ctx context.Context, id int32) (GetReleaseRow, error)
- func (q *Queries) GetReleaseAlias(ctx context.Context, alias string) (ReleaseAlias, error)
- func (q *Queries) GetReleaseArtists(ctx context.Context, releaseID int32) ([]GetReleaseArtistsRow, error)
- func (q *Queries) GetReleaseByArtistAndTitle(ctx context.Context, arg GetReleaseByArtistAndTitleParams) (ReleasesWithTitle, error)
- func (q *Queries) GetReleaseByArtistAndTitles(ctx context.Context, arg GetReleaseByArtistAndTitlesParams) (ReleasesWithTitle, error)
- func (q *Queries) GetReleaseByImageID(ctx context.Context, image *uuid.UUID) (Release, error)
- func (q *Queries) GetReleaseByMbzID(ctx context.Context, musicbrainzID *uuid.UUID) (ReleasesWithTitle, error)
- func (q *Queries) GetReleasesWithoutImages(ctx context.Context, arg GetReleasesWithoutImagesParams) ([]GetReleasesWithoutImagesRow, error)
- func (q *Queries) GetSession(ctx context.Context, id uuid.UUID) (Session, error)
- func (q *Queries) GetTopArtistsPaginated(ctx context.Context, arg GetTopArtistsPaginatedParams) ([]GetTopArtistsPaginatedRow, error)
- func (q *Queries) GetTopReleasesFromArtist(ctx context.Context, arg GetTopReleasesFromArtistParams) ([]GetTopReleasesFromArtistRow, error)
- func (q *Queries) GetTopReleasesPaginated(ctx context.Context, arg GetTopReleasesPaginatedParams) ([]GetTopReleasesPaginatedRow, error)
- func (q *Queries) GetTopTracksByArtistPaginated(ctx context.Context, arg GetTopTracksByArtistPaginatedParams) ([]GetTopTracksByArtistPaginatedRow, error)
- func (q *Queries) GetTopTracksInReleasePaginated(ctx context.Context, arg GetTopTracksInReleasePaginatedParams) ([]GetTopTracksInReleasePaginatedRow, error)
- func (q *Queries) GetTopTracksPaginated(ctx context.Context, arg GetTopTracksPaginatedParams) ([]GetTopTracksPaginatedRow, error)
- func (q *Queries) GetTrack(ctx context.Context, id int32) (GetTrackRow, error)
- func (q *Queries) GetTrackAlias(ctx context.Context, alias string) (TrackAlias, error)
- func (q *Queries) GetTrackArtists(ctx context.Context, trackID int32) ([]GetTrackArtistsRow, error)
- func (q *Queries) GetTrackByMbzID(ctx context.Context, musicbrainzID *uuid.UUID) (TracksWithTitle, error)
- func (q *Queries) GetTrackByTitleAndArtists(ctx context.Context, arg GetTrackByTitleAndArtistsParams) (TracksWithTitle, error)
- func (q *Queries) GetTracksPlayedAtLeastOncePerMonthInYear(ctx context.Context, userID int32) ([]GetTracksPlayedAtLeastOncePerMonthInYearRow, error)
- func (q *Queries) GetUserByApiKey(ctx context.Context, key string) (User, error)
- func (q *Queries) GetUserBySession(ctx context.Context, id uuid.UUID) (GetUserBySessionRow, error)
- func (q *Queries) GetUserByUsername(ctx context.Context, username string) (User, error)
- func (q *Queries) GetWeekWithMostListensInYear(ctx context.Context, arg GetWeekWithMostListensInYearParams) (GetWeekWithMostListensInYearRow, error)
- func (q *Queries) InsertApiKey(ctx context.Context, arg InsertApiKeyParams) (ApiKey, error)
- func (q *Queries) InsertArtist(ctx context.Context, arg InsertArtistParams) (Artist, error)
- func (q *Queries) InsertArtistAlias(ctx context.Context, arg InsertArtistAliasParams) error
- func (q *Queries) InsertListen(ctx context.Context, arg InsertListenParams) error
- func (q *Queries) InsertRelease(ctx context.Context, arg InsertReleaseParams) (Release, error)
- func (q *Queries) InsertReleaseAlias(ctx context.Context, arg InsertReleaseAliasParams) error
- func (q *Queries) InsertSession(ctx context.Context, arg InsertSessionParams) (Session, error)
- func (q *Queries) InsertTrack(ctx context.Context, arg InsertTrackParams) (Track, error)
- func (q *Queries) InsertTrackAlias(ctx context.Context, arg InsertTrackAliasParams) error
- func (q *Queries) InsertUser(ctx context.Context, arg InsertUserParams) (User, error)
- func (q *Queries) ListenActivity(ctx context.Context, arg ListenActivityParams) ([]ListenActivityRow, error)
- func (q *Queries) ListenActivityForArtist(ctx context.Context, arg ListenActivityForArtistParams) ([]ListenActivityForArtistRow, error)
- func (q *Queries) ListenActivityForRelease(ctx context.Context, arg ListenActivityForReleaseParams) ([]ListenActivityForReleaseRow, error)
- func (q *Queries) ListenActivityForTrack(ctx context.Context, arg ListenActivityForTrackParams) ([]ListenActivityForTrackRow, error)
- func (q *Queries) SearchArtists(ctx context.Context, arg SearchArtistsParams) ([]SearchArtistsRow, error)
- func (q *Queries) SearchArtistsBySubstring(ctx context.Context, arg SearchArtistsBySubstringParams) ([]SearchArtistsBySubstringRow, error)
- func (q *Queries) SearchReleases(ctx context.Context, arg SearchReleasesParams) ([]SearchReleasesRow, error)
- func (q *Queries) SearchReleasesBySubstring(ctx context.Context, arg SearchReleasesBySubstringParams) ([]SearchReleasesBySubstringRow, error)
- func (q *Queries) SearchTracks(ctx context.Context, arg SearchTracksParams) ([]SearchTracksRow, error)
- func (q *Queries) SearchTracksBySubstring(ctx context.Context, arg SearchTracksBySubstringParams) ([]SearchTracksBySubstringRow, error)
- func (q *Queries) SetArtistAliasPrimaryStatus(ctx context.Context, arg SetArtistAliasPrimaryStatusParams) error
- func (q *Queries) SetReleaseAliasPrimaryStatus(ctx context.Context, arg SetReleaseAliasPrimaryStatusParams) error
- func (q *Queries) SetTrackAliasPrimaryStatus(ctx context.Context, arg SetTrackAliasPrimaryStatusParams) error
- func (q *Queries) TracksOnlyPlayedOnceInYear(ctx context.Context, arg TracksOnlyPlayedOnceInYearParams) ([]TracksOnlyPlayedOnceInYearRow, error)
- func (q *Queries) UpdateApiKeyLabel(ctx context.Context, arg UpdateApiKeyLabelParams) error
- func (q *Queries) UpdateArtistImage(ctx context.Context, arg UpdateArtistImageParams) error
- func (q *Queries) UpdateArtistMbzID(ctx context.Context, arg UpdateArtistMbzIDParams) error
- func (q *Queries) UpdateArtistReleases(ctx context.Context, arg UpdateArtistReleasesParams) error
- func (q *Queries) UpdateArtistTracks(ctx context.Context, arg UpdateArtistTracksParams) error
- func (q *Queries) UpdateReleaseForAll(ctx context.Context, arg UpdateReleaseForAllParams) error
- func (q *Queries) UpdateReleaseImage(ctx context.Context, arg UpdateReleaseImageParams) error
- func (q *Queries) UpdateReleaseMbzID(ctx context.Context, arg UpdateReleaseMbzIDParams) error
- func (q *Queries) UpdateReleasePrimaryArtist(ctx context.Context, arg UpdateReleasePrimaryArtistParams) error
- func (q *Queries) UpdateReleaseVariousArtists(ctx context.Context, arg UpdateReleaseVariousArtistsParams) error
- func (q *Queries) UpdateSessionExpiry(ctx context.Context, arg UpdateSessionExpiryParams) error
- func (q *Queries) UpdateTrackDuration(ctx context.Context, arg UpdateTrackDurationParams) error
- func (q *Queries) UpdateTrackIdForListens(ctx context.Context, arg UpdateTrackIdForListensParams) error
- func (q *Queries) UpdateTrackMbzID(ctx context.Context, arg UpdateTrackMbzIDParams) error
- func (q *Queries) UpdateTrackPrimaryArtist(ctx context.Context, arg UpdateTrackPrimaryArtistParams) error
- func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error
- func (q *Queries) UpdateUserUsername(ctx context.Context, arg UpdateUserUsernameParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Release
- type ReleaseAlias
- type ReleasesWithTitle
- type Role
- type SearchArtistsBySubstringParams
- type SearchArtistsBySubstringRow
- type SearchArtistsParams
- type SearchArtistsRow
- type SearchReleasesBySubstringParams
- type SearchReleasesBySubstringRow
- type SearchReleasesParams
- type SearchReleasesRow
- type SearchTracksBySubstringParams
- type SearchTracksBySubstringRow
- type SearchTracksParams
- type SearchTracksRow
- type Session
- type SetArtistAliasPrimaryStatusParams
- type SetReleaseAliasPrimaryStatusParams
- type SetTrackAliasPrimaryStatusParams
- type Track
- type TrackAlias
- type TracksOnlyPlayedOnceInYearParams
- type TracksOnlyPlayedOnceInYearRow
- type TracksWithTitle
- type UpdateApiKeyLabelParams
- type UpdateArtistImageParams
- type UpdateArtistMbzIDParams
- type UpdateArtistReleasesParams
- type UpdateArtistTracksParams
- type UpdateReleaseForAllParams
- type UpdateReleaseImageParams
- type UpdateReleaseMbzIDParams
- type UpdateReleasePrimaryArtistParams
- type UpdateReleaseVariousArtistsParams
- type UpdateSessionExpiryParams
- type UpdateTrackDurationParams
- type UpdateTrackIdForListensParams
- type UpdateTrackMbzIDParams
- type UpdateTrackPrimaryArtistParams
- type UpdateUserPasswordParams
- type UpdateUserUsernameParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtistAlias ¶
type ArtistRelease ¶
type ArtistTrack ¶
type ArtistsOnlyPlayedOnceInYearParams ¶ added in v0.0.13
type ArtistsOnlyPlayedOnceInYearRow ¶ added in v0.0.13
type ArtistsWithName ¶
type CountListensParams ¶
type CountTimeListenedParams ¶
type CountTopArtistsParams ¶
type CountTopReleasesParams ¶
type CountTopTracksParams ¶
type DeleteArtistAliasParams ¶
type DeleteListenParams ¶
type DeleteTrackAliasParams ¶
type GetArtistByMbzIDRow ¶
type GetArtistByNameRow ¶
type GetArtistCountInYearParams ¶ added in v0.0.13
type GetArtistRow ¶
type GetArtistWithLongestGapInYearParams ¶ added in v0.0.13
type GetArtistWithLongestGapInYearRow ¶ added in v0.0.13
type GetArtistsWithOnlyOnePlayInYearRow ¶ added in v0.0.13
type GetFirstListenInYearRow ¶ added in v0.0.13
type GetListenPercentageInTimeWindowInYearParams ¶ added in v0.0.13
type GetListenPercentageInTimeWindowInYearRow ¶ added in v0.0.13
type GetListensExportPageParams ¶ added in v0.0.10
type GetListensExportPageRow ¶ added in v0.0.10
type GetListensExportPageRow struct { ListenedAt time.Time UserID int32 Client *string TrackID int32 TrackMbid *uuid.UUID TrackDuration int32 TrackAliases []byte ReleaseID int32 ReleaseMbid *uuid.UUID ReleaseImage *uuid.UUID ReleaseImageSource pgtype.Text VariousArtists bool ReleaseAliases []byte Artists []byte }
type GetMostReplayedTrackInYearParams ¶ added in v0.0.13
type GetMostReplayedTrackInYearRow ¶ added in v0.0.13
type GetPercentageOfTotalListensFromTopArtistsInYearParams ¶ added in v0.0.13
type GetPercentageOfTotalListensFromTopArtistsInYearRow ¶ added in v0.0.13
type GetPercentageOfTotalListensFromTopTracksInYearParams ¶ added in v0.0.13
type GetPercentageOfTotalListensFromTopTracksInYearRow ¶ added in v0.0.13
type GetReleaseArtistsRow ¶ added in v0.0.8
type GetReleaseRow ¶ added in v0.0.13
type GetTrackArtistsRow ¶ added in v0.0.8
type GetTrackRow ¶
type GetTracksPlayedAtLeastOncePerMonthInYearRow ¶ added in v0.0.13
type GetUserBySessionRow ¶
type GetWeekWithMostListensInYearParams ¶ added in v0.0.13
type GetWeekWithMostListensInYearRow ¶ added in v0.0.13
type InsertApiKeyParams ¶
type InsertArtistAliasParams ¶
type InsertArtistParams ¶
type InsertListenParams ¶
type InsertReleaseParams ¶
type InsertSessionParams ¶
type InsertTrackAliasParams ¶
type InsertTrackParams ¶
type InsertUserParams ¶
type ListenActivityParams ¶
type ListenActivityRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ArtistsOnlyPlayedOnceInYear ¶ added in v0.0.13
func (q *Queries) ArtistsOnlyPlayedOnceInYear(ctx context.Context, arg ArtistsOnlyPlayedOnceInYearParams) ([]ArtistsOnlyPlayedOnceInYearRow, error)
func (*Queries) AssociateArtistToRelease ¶
func (q *Queries) AssociateArtistToRelease(ctx context.Context, arg AssociateArtistToReleaseParams) error
func (*Queries) AssociateArtistToTrack ¶
func (q *Queries) AssociateArtistToTrack(ctx context.Context, arg AssociateArtistToTrackParams) error
func (*Queries) CleanOrphanedEntries ¶
DELETE FROM releases WHERE release_group_id NOT IN (SELECT t.release_group_id FROM tracks t); DELETE FROM releases WHERE release_group_id NOT IN (SELECT rg.id FROM release_groups rg);
func (*Queries) CountApiKeys ¶
func (*Queries) CountListens ¶
func (*Queries) CountListensFromArtist ¶
func (*Queries) CountListensFromRelease ¶
func (*Queries) CountListensFromTrack ¶
func (*Queries) CountReleasesFromArtist ¶
func (*Queries) CountTimeListened ¶
func (*Queries) CountTimeListenedToArtist ¶
func (*Queries) CountTimeListenedToRelease ¶
func (*Queries) CountTimeListenedToTrack ¶
func (*Queries) CountTopArtists ¶
func (*Queries) CountTopReleases ¶
func (*Queries) CountTopTracks ¶
func (*Queries) CountTopTracksByArtist ¶
func (*Queries) CountTopTracksByRelease ¶
func (*Queries) DeleteArtistAlias ¶
func (q *Queries) DeleteArtistAlias(ctx context.Context, arg DeleteArtistAliasParams) error
func (*Queries) DeleteConflictingArtistReleases ¶
func (q *Queries) DeleteConflictingArtistReleases(ctx context.Context, arg DeleteConflictingArtistReleasesParams) error
func (*Queries) DeleteConflictingArtistTracks ¶
func (q *Queries) DeleteConflictingArtistTracks(ctx context.Context, arg DeleteConflictingArtistTracksParams) error
func (*Queries) DeleteListen ¶
func (q *Queries) DeleteListen(ctx context.Context, arg DeleteListenParams) error
func (*Queries) DeleteRelease ¶
func (*Queries) DeleteReleaseAlias ¶
func (q *Queries) DeleteReleaseAlias(ctx context.Context, arg DeleteReleaseAliasParams) error
func (*Queries) DeleteReleasesFromArtist ¶
func (*Queries) DeleteSession ¶
func (*Queries) DeleteTrackAlias ¶
func (q *Queries) DeleteTrackAlias(ctx context.Context, arg DeleteTrackAliasParams) error
func (*Queries) GetAllApiKeysByUserID ¶
func (*Queries) GetAllArtistAliases ¶
func (*Queries) GetAllReleaseAliases ¶
func (*Queries) GetAllTrackAliases ¶
func (*Queries) GetAllTracksFromArtist ¶
func (*Queries) GetArtistAlias ¶
func (*Queries) GetArtistByImage ¶
func (*Queries) GetArtistByMbzID ¶
func (*Queries) GetArtistByName ¶
func (*Queries) GetArtistCountInYear ¶ added in v0.0.13
func (*Queries) GetArtistWithLongestGapInYear ¶ added in v0.0.13
func (q *Queries) GetArtistWithLongestGapInYear(ctx context.Context, arg GetArtistWithLongestGapInYearParams) (GetArtistWithLongestGapInYearRow, error)
func (*Queries) GetArtistsWithOnlyOnePlayInYear ¶ added in v0.0.13
func (q *Queries) GetArtistsWithOnlyOnePlayInYear(ctx context.Context) ([]GetArtistsWithOnlyOnePlayInYearRow, error)
func (*Queries) GetFirstListenInYear ¶ added in v0.0.13
func (q *Queries) GetFirstListenInYear(ctx context.Context) (GetFirstListenInYearRow, error)
func (*Queries) GetLastListensFromArtistPaginated ¶
func (q *Queries) GetLastListensFromArtistPaginated(ctx context.Context, arg GetLastListensFromArtistPaginatedParams) ([]GetLastListensFromArtistPaginatedRow, error)
func (*Queries) GetLastListensFromReleasePaginated ¶
func (q *Queries) GetLastListensFromReleasePaginated(ctx context.Context, arg GetLastListensFromReleasePaginatedParams) ([]GetLastListensFromReleasePaginatedRow, error)
func (*Queries) GetLastListensFromTrackPaginated ¶
func (q *Queries) GetLastListensFromTrackPaginated(ctx context.Context, arg GetLastListensFromTrackPaginatedParams) ([]GetLastListensFromTrackPaginatedRow, error)
func (*Queries) GetLastListensPaginated ¶
func (q *Queries) GetLastListensPaginated(ctx context.Context, arg GetLastListensPaginatedParams) ([]GetLastListensPaginatedRow, error)
func (*Queries) GetListenPercentageInTimeWindowInYear ¶ added in v0.0.13
func (q *Queries) GetListenPercentageInTimeWindowInYear(ctx context.Context, arg GetListenPercentageInTimeWindowInYearParams) (GetListenPercentageInTimeWindowInYearRow, error)
func (*Queries) GetListensExportPage ¶ added in v0.0.10
func (q *Queries) GetListensExportPage(ctx context.Context, arg GetListensExportPageParams) ([]GetListensExportPageRow, error)
func (*Queries) GetMostReplayedTrackInYear ¶ added in v0.0.13
func (q *Queries) GetMostReplayedTrackInYear(ctx context.Context, arg GetMostReplayedTrackInYearParams) (GetMostReplayedTrackInYearRow, error)
func (*Queries) GetPercentageOfTotalListensFromTopArtistsInYear ¶ added in v0.0.13
func (q *Queries) GetPercentageOfTotalListensFromTopArtistsInYear(ctx context.Context, arg GetPercentageOfTotalListensFromTopArtistsInYearParams) (GetPercentageOfTotalListensFromTopArtistsInYearRow, error)
func (*Queries) GetPercentageOfTotalListensFromTopTracksInYear ¶ added in v0.0.13
func (q *Queries) GetPercentageOfTotalListensFromTopTracksInYear(ctx context.Context, arg GetPercentageOfTotalListensFromTopTracksInYearParams) (GetPercentageOfTotalListensFromTopTracksInYearRow, error)
func (*Queries) GetRelease ¶
func (*Queries) GetReleaseAlias ¶
func (*Queries) GetReleaseArtists ¶
func (*Queries) GetReleaseByArtistAndTitle ¶
func (q *Queries) GetReleaseByArtistAndTitle(ctx context.Context, arg GetReleaseByArtistAndTitleParams) (ReleasesWithTitle, error)
func (*Queries) GetReleaseByArtistAndTitles ¶
func (q *Queries) GetReleaseByArtistAndTitles(ctx context.Context, arg GetReleaseByArtistAndTitlesParams) (ReleasesWithTitle, error)
func (*Queries) GetReleaseByImageID ¶
func (*Queries) GetReleaseByMbzID ¶
func (*Queries) GetReleasesWithoutImages ¶
func (q *Queries) GetReleasesWithoutImages(ctx context.Context, arg GetReleasesWithoutImagesParams) ([]GetReleasesWithoutImagesRow, error)
func (*Queries) GetSession ¶
func (*Queries) GetTopArtistsPaginated ¶
func (q *Queries) GetTopArtistsPaginated(ctx context.Context, arg GetTopArtistsPaginatedParams) ([]GetTopArtistsPaginatedRow, error)
func (*Queries) GetTopReleasesFromArtist ¶
func (q *Queries) GetTopReleasesFromArtist(ctx context.Context, arg GetTopReleasesFromArtistParams) ([]GetTopReleasesFromArtistRow, error)
func (*Queries) GetTopReleasesPaginated ¶
func (q *Queries) GetTopReleasesPaginated(ctx context.Context, arg GetTopReleasesPaginatedParams) ([]GetTopReleasesPaginatedRow, error)
func (*Queries) GetTopTracksByArtistPaginated ¶
func (q *Queries) GetTopTracksByArtistPaginated(ctx context.Context, arg GetTopTracksByArtistPaginatedParams) ([]GetTopTracksByArtistPaginatedRow, error)
func (*Queries) GetTopTracksInReleasePaginated ¶
func (q *Queries) GetTopTracksInReleasePaginated(ctx context.Context, arg GetTopTracksInReleasePaginatedParams) ([]GetTopTracksInReleasePaginatedRow, error)
func (*Queries) GetTopTracksPaginated ¶
func (q *Queries) GetTopTracksPaginated(ctx context.Context, arg GetTopTracksPaginatedParams) ([]GetTopTracksPaginatedRow, error)
func (*Queries) GetTrackAlias ¶
func (*Queries) GetTrackArtists ¶
func (*Queries) GetTrackByMbzID ¶
func (*Queries) GetTrackByTitleAndArtists ¶
func (q *Queries) GetTrackByTitleAndArtists(ctx context.Context, arg GetTrackByTitleAndArtistsParams) (TracksWithTitle, error)
func (*Queries) GetTracksPlayedAtLeastOncePerMonthInYear ¶ added in v0.0.13
func (*Queries) GetUserByApiKey ¶
func (*Queries) GetUserBySession ¶
func (*Queries) GetUserByUsername ¶
func (*Queries) GetWeekWithMostListensInYear ¶ added in v0.0.13
func (q *Queries) GetWeekWithMostListensInYear(ctx context.Context, arg GetWeekWithMostListensInYearParams) (GetWeekWithMostListensInYearRow, error)
func (*Queries) InsertApiKey ¶
func (*Queries) InsertArtist ¶
func (*Queries) InsertArtistAlias ¶
func (q *Queries) InsertArtistAlias(ctx context.Context, arg InsertArtistAliasParams) error
func (*Queries) InsertListen ¶
func (q *Queries) InsertListen(ctx context.Context, arg InsertListenParams) error
func (*Queries) InsertRelease ¶
func (*Queries) InsertReleaseAlias ¶
func (q *Queries) InsertReleaseAlias(ctx context.Context, arg InsertReleaseAliasParams) error
func (*Queries) InsertSession ¶
func (*Queries) InsertTrack ¶
func (*Queries) InsertTrackAlias ¶
func (q *Queries) InsertTrackAlias(ctx context.Context, arg InsertTrackAliasParams) error
func (*Queries) InsertUser ¶
func (*Queries) ListenActivity ¶
func (q *Queries) ListenActivity(ctx context.Context, arg ListenActivityParams) ([]ListenActivityRow, error)
func (*Queries) ListenActivityForArtist ¶
func (q *Queries) ListenActivityForArtist(ctx context.Context, arg ListenActivityForArtistParams) ([]ListenActivityForArtistRow, error)
func (*Queries) ListenActivityForRelease ¶
func (q *Queries) ListenActivityForRelease(ctx context.Context, arg ListenActivityForReleaseParams) ([]ListenActivityForReleaseRow, error)
func (*Queries) ListenActivityForTrack ¶
func (q *Queries) ListenActivityForTrack(ctx context.Context, arg ListenActivityForTrackParams) ([]ListenActivityForTrackRow, error)
func (*Queries) SearchArtists ¶
func (q *Queries) SearchArtists(ctx context.Context, arg SearchArtistsParams) ([]SearchArtistsRow, error)
func (*Queries) SearchArtistsBySubstring ¶
func (q *Queries) SearchArtistsBySubstring(ctx context.Context, arg SearchArtistsBySubstringParams) ([]SearchArtistsBySubstringRow, error)
func (*Queries) SearchReleases ¶
func (q *Queries) SearchReleases(ctx context.Context, arg SearchReleasesParams) ([]SearchReleasesRow, error)
func (*Queries) SearchReleasesBySubstring ¶
func (q *Queries) SearchReleasesBySubstring(ctx context.Context, arg SearchReleasesBySubstringParams) ([]SearchReleasesBySubstringRow, error)
func (*Queries) SearchTracks ¶
func (q *Queries) SearchTracks(ctx context.Context, arg SearchTracksParams) ([]SearchTracksRow, error)
func (*Queries) SearchTracksBySubstring ¶
func (q *Queries) SearchTracksBySubstring(ctx context.Context, arg SearchTracksBySubstringParams) ([]SearchTracksBySubstringRow, error)
func (*Queries) SetArtistAliasPrimaryStatus ¶
func (q *Queries) SetArtistAliasPrimaryStatus(ctx context.Context, arg SetArtistAliasPrimaryStatusParams) error
func (*Queries) SetReleaseAliasPrimaryStatus ¶
func (q *Queries) SetReleaseAliasPrimaryStatus(ctx context.Context, arg SetReleaseAliasPrimaryStatusParams) error
func (*Queries) SetTrackAliasPrimaryStatus ¶
func (q *Queries) SetTrackAliasPrimaryStatus(ctx context.Context, arg SetTrackAliasPrimaryStatusParams) error
func (*Queries) TracksOnlyPlayedOnceInYear ¶ added in v0.0.13
func (q *Queries) TracksOnlyPlayedOnceInYear(ctx context.Context, arg TracksOnlyPlayedOnceInYearParams) ([]TracksOnlyPlayedOnceInYearRow, error)
func (*Queries) UpdateApiKeyLabel ¶
func (q *Queries) UpdateApiKeyLabel(ctx context.Context, arg UpdateApiKeyLabelParams) error
func (*Queries) UpdateArtistImage ¶
func (q *Queries) UpdateArtistImage(ctx context.Context, arg UpdateArtistImageParams) error
func (*Queries) UpdateArtistMbzID ¶
func (q *Queries) UpdateArtistMbzID(ctx context.Context, arg UpdateArtistMbzIDParams) error
func (*Queries) UpdateArtistReleases ¶
func (q *Queries) UpdateArtistReleases(ctx context.Context, arg UpdateArtistReleasesParams) error
func (*Queries) UpdateArtistTracks ¶
func (q *Queries) UpdateArtistTracks(ctx context.Context, arg UpdateArtistTracksParams) error
func (*Queries) UpdateReleaseForAll ¶
func (q *Queries) UpdateReleaseForAll(ctx context.Context, arg UpdateReleaseForAllParams) error
func (*Queries) UpdateReleaseImage ¶
func (q *Queries) UpdateReleaseImage(ctx context.Context, arg UpdateReleaseImageParams) error
func (*Queries) UpdateReleaseMbzID ¶
func (q *Queries) UpdateReleaseMbzID(ctx context.Context, arg UpdateReleaseMbzIDParams) error
func (*Queries) UpdateReleasePrimaryArtist ¶ added in v0.0.8
func (q *Queries) UpdateReleasePrimaryArtist(ctx context.Context, arg UpdateReleasePrimaryArtistParams) error
func (*Queries) UpdateReleaseVariousArtists ¶ added in v0.0.6
func (q *Queries) UpdateReleaseVariousArtists(ctx context.Context, arg UpdateReleaseVariousArtistsParams) error
func (*Queries) UpdateSessionExpiry ¶
func (q *Queries) UpdateSessionExpiry(ctx context.Context, arg UpdateSessionExpiryParams) error
func (*Queries) UpdateTrackDuration ¶
func (q *Queries) UpdateTrackDuration(ctx context.Context, arg UpdateTrackDurationParams) error
func (*Queries) UpdateTrackIdForListens ¶
func (q *Queries) UpdateTrackIdForListens(ctx context.Context, arg UpdateTrackIdForListensParams) error
func (*Queries) UpdateTrackMbzID ¶
func (q *Queries) UpdateTrackMbzID(ctx context.Context, arg UpdateTrackMbzIDParams) error
func (*Queries) UpdateTrackPrimaryArtist ¶ added in v0.0.8
func (q *Queries) UpdateTrackPrimaryArtist(ctx context.Context, arg UpdateTrackPrimaryArtistParams) error
func (*Queries) UpdateUserPassword ¶
func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error
func (*Queries) UpdateUserUsername ¶
func (q *Queries) UpdateUserUsername(ctx context.Context, arg UpdateUserUsernameParams) error
type ReleaseAlias ¶
type ReleasesWithTitle ¶
type SearchArtistsParams ¶
type SearchArtistsRow ¶
type SearchReleasesParams ¶
type SearchReleasesRow ¶
type SearchTracksParams ¶
type SearchTracksRow ¶
type TrackAlias ¶
type TracksOnlyPlayedOnceInYearParams ¶ added in v0.0.13
type TracksOnlyPlayedOnceInYearRow ¶ added in v0.0.13
type TracksWithTitle ¶
type UpdateApiKeyLabelParams ¶
type UpdateArtistImageParams ¶
type UpdateArtistMbzIDParams ¶
type UpdateReleasePrimaryArtistParams ¶ added in v0.0.8
type UpdateReleaseVariousArtistsParams ¶ added in v0.0.6
type UpdateTrackMbzIDParams ¶
type UpdateTrackPrimaryArtistParams ¶ added in v0.0.8
Click to show internal directories.
Click to hide internal directories.