Documentation ¶
Index ¶
- type AddIngredientParams
- type DBTX
- type Ingredient
- type ListIngredientsParams
- type Querier
- type Queries
- func (q *Queries) AddIngredient(ctx context.Context, arg AddIngredientParams) (Ingredient, error)
- func (q *Queries) DeleteIngredient(ctx context.Context, id int64) error
- func (q *Queries) GetIngreditent(ctx context.Context, id int64) (Ingredient, error)
- func (q *Queries) ListIngredients(ctx context.Context, arg ListIngredientsParams) ([]Ingredient, error)
- func (q *Queries) UpdateIngredient(ctx context.Context, arg UpdateIngredientParams) (Ingredient, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SQLStore
- type Store
- type UpdateIngredientParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddIngredientParams ¶
type Ingredient ¶
type ListIngredientsParams ¶
type Querier ¶
type Querier interface { AddIngredient(ctx context.Context, arg AddIngredientParams) (Ingredient, error) DeleteIngredient(ctx context.Context, id int64) error GetIngreditent(ctx context.Context, id int64) (Ingredient, error) ListIngredients(ctx context.Context, arg ListIngredientsParams) ([]Ingredient, error) UpdateIngredient(ctx context.Context, arg UpdateIngredientParams) (Ingredient, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddIngredient ¶
func (q *Queries) AddIngredient(ctx context.Context, arg AddIngredientParams) (Ingredient, error)
func (*Queries) DeleteIngredient ¶
func (*Queries) GetIngreditent ¶
func (*Queries) ListIngredients ¶
func (q *Queries) ListIngredients(ctx context.Context, arg ListIngredientsParams) ([]Ingredient, error)
func (*Queries) UpdateIngredient ¶
func (q *Queries) UpdateIngredient(ctx context.Context, arg UpdateIngredientParams) (Ingredient, error)
type UpdateIngredientParams ¶
Click to show internal directories.
Click to hide internal directories.