Documentation
¶
Index ¶
- type DBTX
- type LyricsTypeEnum
- type Message
- type MessageCreateParams
- type NullLyricsTypeEnum
- type NullTapCategory
- type Queries
- func (q *Queries) MessageCreate(ctx context.Context, arg MessageCreateParams) (int32, error)
- func (q *Queries) MessageGetByID(ctx context.Context, id int32) (Message, error)
- func (q *Queries) MessageGetLast(ctx context.Context) (Message, error)
- func (q *Queries) MessageGetSinceID(ctx context.Context, id int32) ([]Message, error)
- func (q *Queries) ReplyCreate(ctx context.Context, arg ReplyCreateParams) (int32, error)
- func (q *Queries) ReplyGetSinceMessageID(ctx context.Context, messageID int32) ([]Reply, error)
- func (q *Queries) ScanCreate(ctx context.Context, arg ScanCreateParams) (int32, error)
- func (q *Queries) ScanGetAllSinceID(ctx context.Context, id int32) ([]Scan, error)
- func (q *Queries) ScanGetInSeason(ctx context.Context, id int32) ([]Scan, error)
- func (q *Queries) ScanGetLast(ctx context.Context) (Scan, error)
- func (q *Queries) SeasonCreate(ctx context.Context, arg SeasonCreateParams) (int32, error)
- func (q *Queries) SeasonDeleteAll(ctx context.Context) error
- func (q *Queries) SeasonGetAll(ctx context.Context) ([]Season, error)
- func (q *Queries) SeasonGetCurrent(ctx context.Context) (Season, error)
- func (q *Queries) SeasonUpdate(ctx context.Context, arg SeasonUpdateParams) error
- func (q *Queries) SongArtistCreate(ctx context.Context, arg SongArtistCreateParams) (int32, error)
- func (q *Queries) SongArtistGenreCreate(ctx context.Context, arg SongArtistGenreCreateParams) (int32, error)
- func (q *Queries) SongArtistGetBySpotify(ctx context.Context, spotifyID string) (SongArtist, error)
- func (q *Queries) SongArtistGetTop50(ctx context.Context) ([]SongArtistGetTop50Row, error)
- func (q *Queries) SongArtistGetTop50Monthly(ctx context.Context) ([]SongArtistGetTop50MonthlyRow, error)
- func (q *Queries) SongArtistSongCreate(ctx context.Context, arg SongArtistSongCreateParams) (int32, error)
- func (q *Queries) SongCreate(ctx context.Context, arg SongCreateParams) (int32, error)
- func (q *Queries) SongGenreCreate(ctx context.Context, genre string) (int32, error)
- func (q *Queries) SongGenreGetByGenre(ctx context.Context, genre string) (SongGenre, error)
- func (q *Queries) SongGenreGetTop50(ctx context.Context) ([]SongGenreGetTop50Row, error)
- func (q *Queries) SongGenreGetTop50Monthly(ctx context.Context) ([]SongGenreGetTop50MonthlyRow, error)
- func (q *Queries) SongGetBySpotify(ctx context.Context, spotifyID string) (Song, error)
- func (q *Queries) SongGetLast50(ctx context.Context) ([]SongGetLast50Row, error)
- func (q *Queries) SongGetLastPopulated(ctx context.Context) ([]SongGetLastPopulatedRow, error)
- func (q *Queries) SongGetTop50(ctx context.Context) ([]SongGetTop50Row, error)
- func (q *Queries) SongGetTop50Monthly(ctx context.Context) ([]SongGetTop50MonthlyRow, error)
- func (q *Queries) SongHistoryCreate(ctx context.Context, songID int32) (int32, error)
- func (q *Queries) TapCreate(ctx context.Context, arg TapCreateParams) (int32, error)
- func (q *Queries) TapGetCountByCategory(ctx context.Context) ([]TapGetCountByCategoryRow, error)
- func (q *Queries) TapGetLast(ctx context.Context) (Tap, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Reply
- type ReplyCreateParams
- type Scan
- type ScanCreateParams
- type Season
- type SeasonCreateParams
- type SeasonUpdateParams
- type Song
- type SongArtist
- type SongArtistCreateParams
- type SongArtistGenre
- type SongArtistGenreCreateParams
- type SongArtistGetTop50MonthlyRow
- type SongArtistGetTop50Row
- type SongArtistSong
- type SongArtistSongCreateParams
- type SongCreateParams
- type SongGenre
- type SongGenreGetTop50MonthlyRow
- type SongGenreGetTop50Row
- type SongGetLast50Row
- type SongGetLastPopulatedRow
- type SongGetTop50MonthlyRow
- type SongGetTop50Row
- type SongHistory
- type Tap
- type TapCategory
- type TapCreateParams
- type TapGetCountByCategoryRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LyricsTypeEnum ¶
type LyricsTypeEnum string
const ( LyricsTypeEnumPlain LyricsTypeEnum = "plain" LyricsTypeEnumSynced LyricsTypeEnum = "synced" LyricsTypeEnumInstrumental LyricsTypeEnum = "instrumental" LyricsTypeEnumMissing LyricsTypeEnum = "missing" )
func (*LyricsTypeEnum) Scan ¶
func (e *LyricsTypeEnum) Scan(src interface{}) error
type MessageCreateParams ¶
type NullLyricsTypeEnum ¶
type NullLyricsTypeEnum struct {
LyricsTypeEnum LyricsTypeEnum
Valid bool // Valid is true if LyricsTypeEnum is not NULL
}
func (*NullLyricsTypeEnum) Scan ¶
func (ns *NullLyricsTypeEnum) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullTapCategory ¶
type NullTapCategory struct {
TapCategory TapCategory
Valid bool // Valid is true if TapCategory is not NULL
}
func (*NullTapCategory) Scan ¶
func (ns *NullTapCategory) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) MessageCreate ¶
func (*Queries) MessageGetByID ¶
func (*Queries) MessageGetLast ¶
func (*Queries) MessageGetSinceID ¶
func (*Queries) ReplyCreate ¶
func (*Queries) ReplyGetSinceMessageID ¶
func (*Queries) ScanCreate ¶
func (*Queries) ScanGetAllSinceID ¶
func (*Queries) ScanGetInSeason ¶
func (*Queries) SeasonCreate ¶
func (*Queries) SeasonGetAll ¶
func (*Queries) SeasonGetCurrent ¶
func (*Queries) SeasonUpdate ¶
func (q *Queries) SeasonUpdate(ctx context.Context, arg SeasonUpdateParams) error
func (*Queries) SongArtistCreate ¶
func (*Queries) SongArtistGenreCreate ¶
func (*Queries) SongArtistGetBySpotify ¶
func (*Queries) SongArtistGetTop50 ¶
func (q *Queries) SongArtistGetTop50(ctx context.Context) ([]SongArtistGetTop50Row, error)
func (*Queries) SongArtistGetTop50Monthly ¶
func (q *Queries) SongArtistGetTop50Monthly(ctx context.Context) ([]SongArtistGetTop50MonthlyRow, error)
func (*Queries) SongArtistSongCreate ¶
func (*Queries) SongCreate ¶
func (*Queries) SongGenreCreate ¶
func (*Queries) SongGenreGetByGenre ¶
func (*Queries) SongGenreGetTop50 ¶
func (q *Queries) SongGenreGetTop50(ctx context.Context) ([]SongGenreGetTop50Row, error)
func (*Queries) SongGenreGetTop50Monthly ¶
func (q *Queries) SongGenreGetTop50Monthly(ctx context.Context) ([]SongGenreGetTop50MonthlyRow, error)
func (*Queries) SongGetBySpotify ¶
func (*Queries) SongGetLast50 ¶
func (q *Queries) SongGetLast50(ctx context.Context) ([]SongGetLast50Row, error)
func (*Queries) SongGetLastPopulated ¶
func (q *Queries) SongGetLastPopulated(ctx context.Context) ([]SongGetLastPopulatedRow, error)
func (*Queries) SongGetTop50 ¶
func (q *Queries) SongGetTop50(ctx context.Context) ([]SongGetTop50Row, error)
func (*Queries) SongGetTop50Monthly ¶
func (q *Queries) SongGetTop50Monthly(ctx context.Context) ([]SongGetTop50MonthlyRow, error)
func (*Queries) SongHistoryCreate ¶
func (*Queries) TapGetCountByCategory ¶
func (q *Queries) TapGetCountByCategory(ctx context.Context) ([]TapGetCountByCategoryRow, error)
type ReplyCreateParams ¶
type ScanCreateParams ¶
type ScanCreateParams struct {
ScanID int32
ScanTime pgtype.Timestamptz
}
type SeasonCreateParams ¶
type SeasonUpdateParams ¶
type SongArtist ¶
type SongArtistCreateParams ¶
type SongArtistGenre ¶
type SongArtistGetTop50MonthlyRow ¶
type SongArtistGetTop50MonthlyRow struct {
SongArtist SongArtist
PlayCount int64
}
type SongArtistGetTop50Row ¶
type SongArtistGetTop50Row struct {
SongArtist SongArtist
PlayCount int64
}
type SongArtistSong ¶
type SongCreateParams ¶
type SongGenreGetTop50Row ¶
type SongGetLast50Row ¶
type SongGetLastPopulatedRow ¶
type SongGetLastPopulatedRow struct {
SongHistory SongHistory
Song Song
SongArtist SongArtist
}
type SongGetTop50MonthlyRow ¶
type SongGetTop50Row ¶
type SongHistory ¶
type SongHistory struct {
ID int32
SongID int32
CreatedAt pgtype.Timestamptz
}
type Tap ¶
type Tap struct {
ID int32
OrderID int32
OrderCreatedAt pgtype.Timestamptz
Name string
CreatedAt pgtype.Timestamptz
Category TapCategory
}
type TapCategory ¶
type TapCategory string
const ( TapCategorySoft TapCategory = "soft" TapCategoryMate TapCategory = "mate" TapCategoryBeer TapCategory = "beer" TapCategoryFood TapCategory = "food" TapCategoryUnknown TapCategory = "unknown" )
func (*TapCategory) Scan ¶
func (e *TapCategory) Scan(src interface{}) error
type TapCreateParams ¶
type TapCreateParams struct {
OrderID int32
OrderCreatedAt pgtype.Timestamptz
Name string
Category TapCategory
}
type TapGetCountByCategoryRow ¶
type TapGetCountByCategoryRow struct {
Category TapCategory
Count int64
LatestOrderCreatedAt pgtype.Timestamp
}
Click to show internal directories.
Click to hide internal directories.