Documentation
¶
Index ¶
- type AiCache
- type AlltimeUserStat
- type ApiKey
- type Artist
- type ArtistAlias
- type ArtistEmbedding
- type ArtistRelease
- type ArtistTrack
- type ArtistsOnlyPlayedOnceInYearParams
- type ArtistsOnlyPlayedOnceInYearRow
- type ArtistsWithName
- type AssociateArtistToReleaseParams
- type AssociateArtistToTrackParams
- type ClientSource
- 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 DailyUserStat
- type DeleteAICacheByKeyParams
- type DeleteAICacheByTypeParams
- type DeleteApiKeyParams
- type DeleteArtistAliasParams
- type DeleteConflictingArtistReleasesParams
- type DeleteConflictingArtistTracksParams
- type DeleteListenParams
- type DeleteReleaseAliasParams
- type DeleteTrackAliasParams
- type ExistsListenFuzzyParams
- type GetAICacheParams
- type GetArtistByMbzIDRow
- type GetArtistByNameRow
- type GetArtistCountInYearParams
- type GetArtistRow
- type GetArtistWithLongestGapInYearParams
- type GetArtistWithLongestGapInYearRow
- type GetArtistsWithOnlyOnePlayInYearRow
- type GetFirstListenFromArtistParams
- type GetFirstListenFromReleaseParams
- type GetFirstListenFromTrackParams
- 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 MonthlyUserStat
- 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) CleanupOldPresence(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) DeleteAICacheByKey(ctx context.Context, arg DeleteAICacheByKeyParams) error
- func (q *Queries) DeleteAICacheByType(ctx context.Context, arg DeleteAICacheByTypeParams) error
- func (q *Queries) DeleteAllAICache(ctx context.Context, userID int32) error
- func (q *Queries) DeleteApiKey(ctx context.Context, arg DeleteApiKeyParams) 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) DeleteExpiredAICache(ctx context.Context) 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) ExistsListenFuzzy(ctx context.Context, arg ExistsListenFuzzyParams) (bool, error)
- func (q *Queries) GetAICache(ctx context.Context, arg GetAICacheParams) (AiCache, 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) GetAllUsers(ctx context.Context) ([]User, 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) GetClientSources(ctx context.Context, userID int32) ([]ClientSource, error)
- func (q *Queries) GetFirstListenFromArtist(ctx context.Context, arg GetFirstListenFromArtistParams) (Listen, error)
- func (q *Queries) GetFirstListenFromRelease(ctx context.Context, arg GetFirstListenFromReleaseParams) (Listen, error)
- func (q *Queries) GetFirstListenFromTrack(ctx context.Context, arg GetFirstListenFromTrackParams) (Listen, 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) GetUser(ctx context.Context, id int32) (User, 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) GetUserPreferences(ctx context.Context, userID int32) ([]byte, error)
- func (q *Queries) GetUserPresence(ctx context.Context, userID int32) (UserPresence, 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) IsUserOnline(ctx context.Context, userID int32) (bool, 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) SaveUserPreferences(ctx context.Context, arg SaveUserPreferencesParams) 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) UpdateArtistMetadata(ctx context.Context, arg UpdateArtistMetadataParams) 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) UpdateReleaseMetadata(ctx context.Context, arg UpdateReleaseMetadataParams) 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) UpdateTrackMetadata(ctx context.Context, arg UpdateTrackMetadataParams) error
- func (q *Queries) UpdateTrackPrimaryArtist(ctx context.Context, arg UpdateTrackPrimaryArtistParams) error
- func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error
- func (q *Queries) UpdateUserRole(ctx context.Context, arg UpdateUserRoleParams) error
- func (q *Queries) UpdateUserUsername(ctx context.Context, arg UpdateUserUsernameParams) error
- func (q *Queries) UpsertAICache(ctx context.Context, arg UpsertAICacheParams) error
- func (q *Queries) UpsertClientSource(ctx context.Context, arg UpsertClientSourceParams) error
- func (q *Queries) UpsertUserPresence(ctx context.Context, userID int32) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Release
- type ReleaseAlias
- type ReleaseEmbedding
- type ReleasesWithTitle
- type Role
- type SaveUserPreferencesParams
- 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 TrackEmbedding
- type TracksOnlyPlayedOnceInYearParams
- type TracksOnlyPlayedOnceInYearRow
- type TracksWithTitle
- type UpdateApiKeyLabelParams
- type UpdateArtistImageParams
- type UpdateArtistMbzIDParams
- type UpdateArtistMetadataParams
- type UpdateArtistReleasesParams
- type UpdateArtistTracksParams
- type UpdateReleaseForAllParams
- type UpdateReleaseImageParams
- type UpdateReleaseMbzIDParams
- type UpdateReleaseMetadataParams
- type UpdateReleasePrimaryArtistParams
- type UpdateReleaseVariousArtistsParams
- type UpdateSessionExpiryParams
- type UpdateTrackDurationParams
- type UpdateTrackIdForListensParams
- type UpdateTrackMbzIDParams
- type UpdateTrackMetadataParams
- type UpdateTrackPrimaryArtistParams
- type UpdateUserPasswordParams
- type UpdateUserRoleParams
- type UpdateUserUsernameParams
- type UpsertAICacheParams
- type UpsertClientSourceParams
- type User
- type UserPreference
- type UserPresence
- type UserTasteEmbedding
- type UserTheme
- type YearlyUserStat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AiCache ¶ added in v0.1.30
type AiCache struct {
ID int32
UserID int32
// Type: profile, nowplaying, playlist
CacheType string
CacheKey string
// MD5 hash of prompt for change detection
PromptHash string
// Hash of input data (stats, track info) for change detection
DataHash string
Response string
CreatedAt pgtype.Timestamptz
ExpiresAt time.Time
ListenCount pgtype.Int4
}
Server-side cache for AI responses with smart refresh
type AlltimeUserStat ¶ added in v0.1.30
type ArtistAlias ¶
type ArtistEmbedding ¶ added in v0.1.30
type ArtistEmbedding struct {
ArtistID int32
Embedding pgvector.Vector
Model pgtype.Text
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ArtistRelease ¶
type ArtistTrack ¶
type ArtistsWithName ¶
type ClientSource ¶ added in v0.1.30
type ClientSource struct {
ID uuid.UUID
UserID int32
Name string
Token string
LastSeen pgtype.Timestamptz
Config []byte
CreatedAt pgtype.Timestamptz
}
type CountListensParams ¶
type CountTimeListenedParams ¶
type CountTopArtistsParams ¶
type CountTopReleasesParams ¶
type CountTopTracksParams ¶
type DailyUserStat ¶ added in v0.1.30
type DeleteAICacheByKeyParams ¶ added in v0.1.30
type DeleteAICacheByTypeParams ¶ added in v0.1.30
type DeleteApiKeyParams ¶ added in v0.1.30
type DeleteArtistAliasParams ¶
type DeleteListenParams ¶
type DeleteTrackAliasParams ¶
type ExistsListenFuzzyParams ¶ added in v0.1.30
type GetAICacheParams ¶ added in v0.1.30
type GetArtistByMbzIDRow ¶
type GetArtistByNameRow ¶
type GetArtistRow ¶
type GetFirstListenFromArtistParams ¶ added in v0.1.30
type GetFirstListenFromReleaseParams ¶ added in v0.1.30
type GetFirstListenFromTrackParams ¶ added in v0.1.30
type GetFirstListenInYearRow ¶
type GetFirstListenInYearRow struct {
TrackID int32
ListenedAt time.Time
Client *string
UserID int32
ID pgtype.Int4
MusicBrainzID *uuid.UUID
Duration pgtype.Int4
ReleaseID pgtype.Int4
Popularity pgtype.Int4
SpotifyID pgtype.Text
Danceability pgtype.Float8
Energy pgtype.Float8
Key pgtype.Int4
Loudness pgtype.Float8
Mode pgtype.Int4
Speechiness pgtype.Float8
Acousticness pgtype.Float8
Instrumentalness pgtype.Float8
Liveness pgtype.Float8
Valence pgtype.Float8
Tempo pgtype.Float8
Title pgtype.Text
Artists []byte
}
type GetListensExportPageRow ¶
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 GetMostReplayedTrackInYearRow ¶
type GetMostReplayedTrackInYearRow struct {
ID int32
MusicBrainzID *uuid.UUID
Duration int32
ReleaseID int32
Popularity pgtype.Int4
SpotifyID pgtype.Text
Danceability pgtype.Float8
Energy pgtype.Float8
Key pgtype.Int4
Loudness pgtype.Float8
Mode pgtype.Int4
Speechiness pgtype.Float8
Acousticness pgtype.Float8
Instrumentalness pgtype.Float8
Liveness pgtype.Float8
Valence pgtype.Float8
Tempo pgtype.Float8
Title string
Artists []byte
StreakLength int64
}
type GetReleaseArtistsRow ¶
type GetReleaseRow ¶
type GetReleasesWithoutImagesRow ¶
type GetReleasesWithoutImagesRow struct {
ID int32
MusicBrainzID *uuid.UUID
Image *uuid.UUID
VariousArtists bool
ImageSource pgtype.Text
Genres []string
ReleaseDate pgtype.Text
Popularity pgtype.Int4
SpotifyID pgtype.Text
Label pgtype.Text
ReleaseDatePrecision pgtype.Text
Title string
Genres_2 []string
ReleaseDate_2 pgtype.Text
Popularity_2 pgtype.Int4
SpotifyID_2 pgtype.Text
Artists []byte
}
type GetTopReleasesFromArtistRow ¶
type GetTopReleasesFromArtistRow struct {
ID int32
MusicBrainzID *uuid.UUID
Image *uuid.UUID
VariousArtists bool
ImageSource pgtype.Text
Genres []string
ReleaseDate pgtype.Text
Popularity pgtype.Int4
SpotifyID pgtype.Text
Label pgtype.Text
ReleaseDatePrecision pgtype.Text
Title string
Genres_2 []string
ReleaseDate_2 pgtype.Text
Popularity_2 pgtype.Int4
SpotifyID_2 pgtype.Text
ListenCount int64
Artists []byte
}
type GetTopReleasesPaginatedRow ¶
type GetTopReleasesPaginatedRow struct {
ID int32
MusicBrainzID *uuid.UUID
Image *uuid.UUID
VariousArtists bool
ImageSource pgtype.Text
Genres []string
ReleaseDate pgtype.Text
Popularity pgtype.Int4
SpotifyID pgtype.Text
Label pgtype.Text
ReleaseDatePrecision pgtype.Text
Title string
Genres_2 []string
ReleaseDate_2 pgtype.Text
Popularity_2 pgtype.Int4
SpotifyID_2 pgtype.Text
ListenCount int64
Artists []byte
}
type GetTrackArtistsRow ¶
type GetTrackRow ¶
type GetTrackRow struct {
ID int32
MusicBrainzID *uuid.UUID
Duration int32
ReleaseID int32
Popularity pgtype.Int4
SpotifyID pgtype.Text
Danceability pgtype.Float8
Energy pgtype.Float8
Key pgtype.Int4
Loudness pgtype.Float8
Mode pgtype.Int4
Speechiness pgtype.Float8
Acousticness pgtype.Float8
Instrumentalness pgtype.Float8
Liveness pgtype.Float8
Valence pgtype.Float8
Tempo pgtype.Float8
Title string
Artists []byte
Image *uuid.UUID
}
type GetUserBySessionRow ¶
type InsertApiKeyParams ¶
type InsertArtistAliasParams ¶
type InsertArtistParams ¶
type InsertListenParams ¶
type InsertReleaseParams ¶
type InsertSessionParams ¶
type InsertTrackAliasParams ¶
type InsertTrackParams ¶
type InsertUserParams ¶
type ListenActivityParams ¶
type ListenActivityRow ¶
type MonthlyUserStat ¶ added in v0.1.30
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ArtistsOnlyPlayedOnceInYear ¶
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) CleanupOldPresence ¶ added in v0.1.30
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) DeleteAICacheByKey ¶ added in v0.1.30
func (q *Queries) DeleteAICacheByKey(ctx context.Context, arg DeleteAICacheByKeyParams) error
func (*Queries) DeleteAICacheByType ¶ added in v0.1.30
func (q *Queries) DeleteAICacheByType(ctx context.Context, arg DeleteAICacheByTypeParams) error
func (*Queries) DeleteAllAICache ¶ added in v0.1.30
func (*Queries) DeleteApiKey ¶
func (q *Queries) DeleteApiKey(ctx context.Context, arg DeleteApiKeyParams) error
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) DeleteExpiredAICache ¶ added in v0.1.30
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) ExistsListenFuzzy ¶ added in v0.1.30
func (*Queries) GetAICache ¶ added in v0.1.30
func (*Queries) GetAllApiKeysByUserID ¶
func (*Queries) GetAllArtistAliases ¶
func (*Queries) GetAllReleaseAliases ¶
func (*Queries) GetAllTrackAliases ¶
func (*Queries) GetAllTracksFromArtist ¶
func (*Queries) GetAllUsers ¶ added in v0.1.30
func (*Queries) GetArtistAlias ¶
func (*Queries) GetArtistByImage ¶
func (*Queries) GetArtistByMbzID ¶
func (*Queries) GetArtistByName ¶
func (*Queries) GetArtistCountInYear ¶
func (*Queries) GetArtistWithLongestGapInYear ¶
func (q *Queries) GetArtistWithLongestGapInYear(ctx context.Context, arg GetArtistWithLongestGapInYearParams) (GetArtistWithLongestGapInYearRow, error)
func (*Queries) GetArtistsWithOnlyOnePlayInYear ¶
func (q *Queries) GetArtistsWithOnlyOnePlayInYear(ctx context.Context) ([]GetArtistsWithOnlyOnePlayInYearRow, error)
func (*Queries) GetClientSources ¶ added in v0.1.30
func (*Queries) GetFirstListenFromArtist ¶
func (*Queries) GetFirstListenFromRelease ¶
func (*Queries) GetFirstListenFromTrack ¶
func (*Queries) GetFirstListenInYear ¶
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 ¶
func (q *Queries) GetListenPercentageInTimeWindowInYear(ctx context.Context, arg GetListenPercentageInTimeWindowInYearParams) (GetListenPercentageInTimeWindowInYearRow, error)
func (*Queries) GetListensExportPage ¶
func (q *Queries) GetListensExportPage(ctx context.Context, arg GetListensExportPageParams) ([]GetListensExportPageRow, error)
func (*Queries) GetMostReplayedTrackInYear ¶
func (q *Queries) GetMostReplayedTrackInYear(ctx context.Context, arg GetMostReplayedTrackInYearParams) (GetMostReplayedTrackInYearRow, error)
func (*Queries) GetPercentageOfTotalListensFromTopArtistsInYear ¶
func (q *Queries) GetPercentageOfTotalListensFromTopArtistsInYear(ctx context.Context, arg GetPercentageOfTotalListensFromTopArtistsInYearParams) (GetPercentageOfTotalListensFromTopArtistsInYearRow, error)
func (*Queries) GetPercentageOfTotalListensFromTopTracksInYear ¶
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 ¶
func (*Queries) GetUserByApiKey ¶
func (*Queries) GetUserBySession ¶
func (*Queries) GetUserByUsername ¶
func (*Queries) GetUserPreferences ¶ added in v0.1.30
func (*Queries) GetUserPresence ¶ added in v0.1.30
func (*Queries) GetWeekWithMostListensInYear ¶
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) IsUserOnline ¶ added in v0.1.30
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) SaveUserPreferences ¶ added in v0.1.30
func (q *Queries) SaveUserPreferences(ctx context.Context, arg SaveUserPreferencesParams) 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 ¶
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) UpdateArtistMetadata ¶ added in v0.1.30
func (q *Queries) UpdateArtistMetadata(ctx context.Context, arg UpdateArtistMetadataParams) 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) UpdateReleaseMetadata ¶ added in v0.1.30
func (q *Queries) UpdateReleaseMetadata(ctx context.Context, arg UpdateReleaseMetadataParams) error
func (*Queries) UpdateReleasePrimaryArtist ¶
func (q *Queries) UpdateReleasePrimaryArtist(ctx context.Context, arg UpdateReleasePrimaryArtistParams) error
func (*Queries) UpdateReleaseVariousArtists ¶
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) UpdateTrackMetadata ¶ added in v0.1.30
func (q *Queries) UpdateTrackMetadata(ctx context.Context, arg UpdateTrackMetadataParams) error
func (*Queries) UpdateTrackPrimaryArtist ¶
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) UpdateUserRole ¶ added in v0.1.30
func (q *Queries) UpdateUserRole(ctx context.Context, arg UpdateUserRoleParams) error
func (*Queries) UpdateUserUsername ¶
func (q *Queries) UpdateUserUsername(ctx context.Context, arg UpdateUserUsernameParams) error
func (*Queries) UpsertAICache ¶ added in v0.1.30
func (q *Queries) UpsertAICache(ctx context.Context, arg UpsertAICacheParams) error
func (*Queries) UpsertClientSource ¶ added in v0.1.30
func (q *Queries) UpsertClientSource(ctx context.Context, arg UpsertClientSourceParams) error
func (*Queries) UpsertUserPresence ¶ added in v0.1.30
type ReleaseAlias ¶
type ReleaseEmbedding ¶ added in v0.1.30
type ReleaseEmbedding struct {
ReleaseID int32
Embedding pgvector.Vector
Model pgtype.Text
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ReleasesWithTitle ¶
type SaveUserPreferencesParams ¶ added in v0.1.30
type SearchArtistsParams ¶
type SearchArtistsRow ¶
type SearchReleasesParams ¶
type SearchReleasesRow ¶
type SearchTracksParams ¶
type SearchTracksRow ¶
type Track ¶
type Track struct {
ID int32
MusicBrainzID *uuid.UUID
Duration int32
ReleaseID int32
Popularity pgtype.Int4
SpotifyID pgtype.Text
Danceability pgtype.Float8
Energy pgtype.Float8
Key pgtype.Int4
Loudness pgtype.Float8
Mode pgtype.Int4
Speechiness pgtype.Float8
Acousticness pgtype.Float8
Instrumentalness pgtype.Float8
Liveness pgtype.Float8
Valence pgtype.Float8
Tempo pgtype.Float8
SearchVector interface{}
}
type TrackAlias ¶
type TrackEmbedding ¶ added in v0.1.30
type TrackEmbedding struct {
TrackID int32
Embedding pgvector.Vector
Model pgtype.Text
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type TracksWithTitle ¶
type TracksWithTitle struct {
ID int32
MusicBrainzID *uuid.UUID
Duration int32
ReleaseID int32
Popularity pgtype.Int4
SpotifyID pgtype.Text
Danceability pgtype.Float8
Energy pgtype.Float8
Key pgtype.Int4
Loudness pgtype.Float8
Mode pgtype.Int4
Speechiness pgtype.Float8
Acousticness pgtype.Float8
Instrumentalness pgtype.Float8
Liveness pgtype.Float8
Valence pgtype.Float8
Tempo pgtype.Float8
Title string
}
type UpdateApiKeyLabelParams ¶
type UpdateArtistImageParams ¶
type UpdateArtistMbzIDParams ¶
type UpdateArtistMetadataParams ¶ added in v0.1.30
type UpdateReleaseMetadataParams ¶ added in v0.1.30
type UpdateTrackMbzIDParams ¶
type UpdateTrackMetadataParams ¶ added in v0.1.30
type UpdateTrackMetadataParams struct {
ID int32
Popularity pgtype.Int4
SpotifyID pgtype.Text
Danceability pgtype.Float8
Energy pgtype.Float8
Key pgtype.Int4
Loudness pgtype.Float8
Mode pgtype.Int4
Speechiness pgtype.Float8
Acousticness pgtype.Float8
Instrumentalness pgtype.Float8
Liveness pgtype.Float8
Valence pgtype.Float8
Tempo pgtype.Float8
}
type UpdateUserRoleParams ¶ added in v0.1.30
type UpsertAICacheParams ¶ added in v0.1.30
type UpsertClientSourceParams ¶ added in v0.1.30
type UserPreference ¶ added in v0.1.30
type UserPresence ¶ added in v0.1.30
Tracks active user sessions for Now Playing critique optimization
type UserTasteEmbedding ¶ added in v0.1.30
Click to show internal directories.
Click to hide internal directories.