Files
music-index/api/sqlc/querier.go
T
2026-03-14 18:46:48 +01:00

44 lines
1.8 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
package sqlc
import (
"context"
"github.com/jackc/pgx/v5/pgtype"
)
type Querier interface {
AddUserAlbum(ctx context.Context, arg AddUserAlbumParams) error
CreateAlbum(ctx context.Context, arg CreateAlbumParams) (pgtype.UUID, error)
CreateArtist(ctx context.Context, arg CreateArtistParams) (pgtype.UUID, error)
// users.sql
CreateUser(ctx context.Context, arg CreateUserParams) (pgtype.UUID, error)
DeleteAlbum(ctx context.Context, id pgtype.UUID) error
DeleteArtist(ctx context.Context, id pgtype.UUID) error
// albums.sql
GetAlbumByID(ctx context.Context, id pgtype.UUID) (Album, error)
GetAlbumsByArtist(ctx context.Context, artist string) ([]Album, error)
GetAllAlbums(ctx context.Context) ([]Album, error)
GetAllArtists(ctx context.Context) ([]Artist, error)
// artists.sql
GetArtistByID(ctx context.Context, id pgtype.UUID) (Artist, error)
GetUserAlbum(ctx context.Context, arg GetUserAlbumParams) (GetUserAlbumRow, error)
// user_albums.sql
GetUserAlbums(ctx context.Context, userID pgtype.UUID) ([]GetUserAlbumsRow, error)
GetUserAuthByEmail(ctx context.Context, userMail string) (GetUserAuthByEmailRow, error)
GetUserByID(ctx context.Context, id pgtype.UUID) (GetUserByIDRow, error)
GetUsernameByID(ctx context.Context, id pgtype.UUID) (string, error)
RemoveUserAlbum(ctx context.Context, arg RemoveUserAlbumParams) error
SearchAlbums(ctx context.Context, dollar_1 pgtype.Text) ([]Album, error)
SearchArtists(ctx context.Context, dollar_1 pgtype.Text) ([]Artist, error)
UpdateAlbum(ctx context.Context, arg UpdateAlbumParams) error
UpdateArtist(ctx context.Context, arg UpdateArtistParams) error
UpdateUser(ctx context.Context, arg UpdateUserParams) error
UpdateUserAlbumStatus(ctx context.Context, arg UpdateUserAlbumStatusParams) error
}
var _ Querier = (*Queries)(nil)