Documentation
¶
Index ¶
- Variables
- func MustLoadDatabase(ctx context.Context) error
- type Chat
- type CreateChatParams
- type CreateProductVersionParams
- type CreateUserParams
- type CreateWatchListParams
- type DBTX
- type DeleteWatchListParams
- type GetProductByIdRow
- type GetProductsByLabelRow
- type GetProductsWithNewReleasesParams
- type GetProductsWithNewReleasesRow
- type GetWatchListRow
- type GetWatchListsGroupedByChatRow
- type GetWatchListsWithProductVersionsRow
- type GetWatchedProductByNameParams
- type GetWatchedProductByNameRow
- type GetWatchedProductsRow
- type IsWatchListExistsParams
- type Product
- type ProductVersion
- type Queries
- func (q *Queries) CreateChat(ctx context.Context, arg *CreateChatParams) (*Chat, error)
- func (q *Queries) CreateProductVersion(ctx context.Context, arg *CreateProductVersionParams) error
- func (q *Queries) CreateUser(ctx context.Context, arg *CreateUserParams) (*User, error)
- func (q *Queries) CreateWatchList(ctx context.Context, arg *CreateWatchListParams) (*WatchList, error)
- func (q *Queries) DeleteChat(ctx context.Context, id int64) error
- func (q *Queries) DeleteWatchList(ctx context.Context, arg *DeleteWatchListParams) error
- func (q *Queries) GetChat(ctx context.Context, id int64) (*Chat, error)
- func (q *Queries) GetDistinctProductIdsFromProductVersionsByCreatedAt(ctx context.Context, createdAt pgtype.Timestamp) ([]int32, error)
- func (q *Queries) GetProductById(ctx context.Context, id int32) (*GetProductByIdRow, error)
- func (q *Queries) GetProductsByLabel(ctx context.Context, label string) ([]*GetProductsByLabelRow, error)
- func (q *Queries) GetProductsWithNewReleases(ctx context.Context, arg *GetProductsWithNewReleasesParams) ([]*GetProductsWithNewReleasesRow, error)
- func (q *Queries) GetUser(ctx context.Context, id int64) (*User, error)
- func (q *Queries) GetWatchList(ctx context.Context, chatID int64) ([]*GetWatchListRow, error)
- func (q *Queries) GetWatchListsGroupedByChat(ctx context.Context) ([]*GetWatchListsGroupedByChatRow, error)
- func (q *Queries) GetWatchListsWithProductVersions(ctx context.Context, chatID int64) ([]*GetWatchListsWithProductVersionsRow, error)
- func (q *Queries) GetWatchedProductByName(ctx context.Context, arg *GetWatchedProductByNameParams) (*GetWatchedProductByNameRow, error)
- func (q *Queries) GetWatchedProducts(ctx context.Context) ([]*GetWatchedProductsRow, error)
- func (q *Queries) IsChatExists(ctx context.Context, id int64) (bool, error)
- func (q *Queries) IsUserExists(ctx context.Context, id int64) (bool, error)
- func (q *Queries) IsWatchListExists(ctx context.Context, arg *IsWatchListExistsParams) (bool, error)
- func (q *Queries) UpdateChat(ctx context.Context, arg *UpdateChatParams) (*Chat, error)
- func (q *Queries) UpsertProduct(ctx context.Context, arg *UpsertProductParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpdateChatParams
- type UpsertProductParams
- type User
- type WatchList
Constants ¶
This section is empty.
Variables ¶
View Source
var Pool *pgxpool.Pool
Functions ¶
func MustLoadDatabase ¶
Types ¶
type CreateChatParams ¶
type CreateUserParams ¶
type CreateWatchListParams ¶
type DeleteWatchListParams ¶
type GetProductByIdRow ¶
type GetProductsByLabelRow ¶
type GetWatchListRow ¶
type GetWatchedProductsRow ¶
type IsWatchListExistsParams ¶
type ProductVersion ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
var Sqlc *Queries
func (*Queries) CreateChat ¶
func (*Queries) CreateProductVersion ¶
func (q *Queries) CreateProductVersion(ctx context.Context, arg *CreateProductVersionParams) error
func (*Queries) CreateUser ¶
func (*Queries) CreateWatchList ¶
func (*Queries) DeleteWatchList ¶
func (q *Queries) DeleteWatchList(ctx context.Context, arg *DeleteWatchListParams) error
func (*Queries) GetDistinctProductIdsFromProductVersionsByCreatedAt ¶
func (*Queries) GetProductById ¶
func (*Queries) GetProductsByLabel ¶
func (*Queries) GetProductsWithNewReleases ¶
func (q *Queries) GetProductsWithNewReleases(ctx context.Context, arg *GetProductsWithNewReleasesParams) ([]*GetProductsWithNewReleasesRow, error)
func (*Queries) GetWatchList ¶
func (*Queries) GetWatchListsGroupedByChat ¶
func (q *Queries) GetWatchListsGroupedByChat(ctx context.Context) ([]*GetWatchListsGroupedByChatRow, error)
func (*Queries) GetWatchListsWithProductVersions ¶
func (*Queries) GetWatchedProductByName ¶
func (q *Queries) GetWatchedProductByName(ctx context.Context, arg *GetWatchedProductByNameParams) (*GetWatchedProductByNameRow, error)
func (*Queries) GetWatchedProducts ¶
func (q *Queries) GetWatchedProducts(ctx context.Context) ([]*GetWatchedProductsRow, error)
func (*Queries) IsChatExists ¶
func (*Queries) IsUserExists ¶
func (*Queries) IsWatchListExists ¶
func (*Queries) UpdateChat ¶
func (*Queries) UpsertProduct ¶
func (q *Queries) UpsertProduct(ctx context.Context, arg *UpsertProductParams) error
type UpdateChatParams ¶
type UpsertProductParams ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.