Documentation
¶
Index ¶
- type Card
- type CreateCardsParams
- type DBTX
- type ListCardsParams
- type ListTagsParams
- type Querier
- type Queries
- func (q *Queries) CreateCards(ctx context.Context, arg CreateCardsParams) (Card, error)
- func (q *Queries) CreateTags(ctx context.Context, name string) (Tag, error)
- func (q *Queries) DeleteCards(ctx context.Context, id int64) error
- func (q *Queries) DeleteTags(ctx context.Context, id int64) error
- func (q *Queries) GetAllCard(ctx context.Context) ([]Card, error)
- func (q *Queries) GetAllTags(ctx context.Context) ([]Tag, error)
- func (q *Queries) GetCard(ctx context.Context, id int64) (Card, error)
- func (q *Queries) GetCardByKnow(ctx context.Context, know bool) ([]Card, error)
- func (q *Queries) GetCardByTag(ctx context.Context, tagsID int32) ([]Card, error)
- func (q *Queries) GetTags(ctx context.Context, id int64) (Tag, error)
- func (q *Queries) ListCards(ctx context.Context, arg ListCardsParams) ([]Card, error)
- func (q *Queries) ListTags(ctx context.Context, arg ListTagsParams) ([]Tag, error)
- func (q *Queries) UpdateCards(ctx context.Context, arg UpdateCardsParams) (Card, error)
- func (q *Queries) UpdateKnowards(ctx context.Context, arg UpdateKnowardsParams) (Card, error)
- func (q *Queries) UpdateTags(ctx context.Context, arg UpdateTagsParams) (Tag, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SQLStore
- type Store
- type Tag
- type UpdateCardsParams
- type UpdateKnowardsParams
- type UpdateTagsParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCardsParams ¶
type ListCardsParams ¶
type ListTagsParams ¶
type Querier ¶
type Querier interface {
CreateCards(ctx context.Context, arg CreateCardsParams) (Card, error)
CreateTags(ctx context.Context, name string) (Tag, error)
DeleteCards(ctx context.Context, id int64) error
DeleteTags(ctx context.Context, id int64) error
GetAllCard(ctx context.Context) ([]Card, error)
GetAllTags(ctx context.Context) ([]Tag, error)
GetCard(ctx context.Context, id int64) (Card, error)
GetCardByKnow(ctx context.Context, know bool) ([]Card, error)
GetCardByTag(ctx context.Context, tagsID int32) ([]Card, error)
GetTags(ctx context.Context, id int64) (Tag, error)
ListCards(ctx context.Context, arg ListCardsParams) ([]Card, error)
ListTags(ctx context.Context, arg ListTagsParams) ([]Tag, error)
UpdateCards(ctx context.Context, arg UpdateCardsParams) (Card, error)
UpdateKnowards(ctx context.Context, arg UpdateKnowardsParams) (Card, error)
UpdateTags(ctx context.Context, arg UpdateTagsParams) (Tag, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateCards ¶
func (*Queries) CreateTags ¶
func (*Queries) GetCardByKnow ¶
func (*Queries) GetCardByTag ¶
func (*Queries) UpdateCards ¶
func (*Queries) UpdateKnowards ¶
func (*Queries) UpdateTags ¶
type SQLStore ¶
type SQLStore struct {
*Queries
// contains filtered or unexported fields
}
SQLStore provides all functions to execute SQL queries and transactions
type Store ¶
type Store interface {
Querier
}
Store defines all functions to execute db queries and transactions
type UpdateCardsParams ¶
type UpdateKnowardsParams ¶
type UpdateTagsParams ¶
Click to show internal directories.
Click to hide internal directories.