Documentation ¶
Index ¶
- type AddIngredientToStepParams
- type AddNewStepParams
- type AddRecipeParams
- type AddRecipeRow
- type DBTX
- type DeleteIngredientFromStepParams
- type GetAllRecipesByNameRow
- type GetStepsForRecipeByIDRow
- type GetTotalIngredientsForRecipeRow
- type Household
- type HouseholdUser
- type Ingredient
- type Queries
- func (q *Queries) AddDemoUser(ctx context.Context) (int64, error)
- func (q *Queries) AddIngredient(ctx context.Context, name string) (int64, error)
- func (q *Queries) AddIngredientToStep(ctx context.Context, arg AddIngredientToStepParams) error
- func (q *Queries) AddNewStep(ctx context.Context, arg AddNewStepParams) (int64, error)
- func (q *Queries) AddRecipe(ctx context.Context, arg AddRecipeParams) (AddRecipeRow, error)
- func (q *Queries) AddUnit(ctx context.Context, name string) (int64, error)
- func (q *Queries) DeleteIngredientFromStep(ctx context.Context, arg DeleteIngredientFromStepParams) error
- func (q *Queries) DeleteStepByID(ctx context.Context, id int64) error
- func (q *Queries) GetAllIngredients(ctx context.Context) ([]Ingredient, error)
- func (q *Queries) GetAllRecipesByName(ctx context.Context) ([]GetAllRecipesByNameRow, error)
- func (q *Queries) GetAllUnits(ctx context.Context) ([]Unit, error)
- func (q *Queries) GetIngredientNameByID(ctx context.Context, id int64) (string, error)
- func (q *Queries) GetRecipeByID(ctx context.Context, id int64) (Recipe, error)
- func (q *Queries) GetStepByID(ctx context.Context, id int64) (Step, error)
- func (q *Queries) GetStepsForRecipeByID(ctx context.Context, id int64) ([]GetStepsForRecipeByIDRow, error)
- func (q *Queries) GetTotalIngredientsForRecipe(ctx context.Context, id int64) ([]GetTotalIngredientsForRecipeRow, error)
- func (q *Queries) UpdateBasicRecipeInformation(ctx context.Context, arg UpdateBasicRecipeInformationParams) error
- func (q *Queries) UpdateStepByID(ctx context.Context, arg UpdateStepByIDParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Recipe
- type SchemaMigration
- type Step
- type StepIngredient
- type Unit
- type UpdateBasicRecipeInformationParams
- type UpdateStepByIDParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddNewStepParams ¶
type AddRecipeParams ¶
type AddRecipeRow ¶
type GetAllRecipesByNameRow ¶
type GetTotalIngredientsForRecipeRow ¶
type GetTotalIngredientsForRecipeRow struct { Name string UnitName sql.NullString TotalAmount int64 }
type HouseholdUser ¶
type Ingredient ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddIngredient ¶
func (*Queries) AddIngredientToStep ¶
func (q *Queries) AddIngredientToStep(ctx context.Context, arg AddIngredientToStepParams) error
func (*Queries) AddNewStep ¶
func (*Queries) AddRecipe ¶
func (q *Queries) AddRecipe(ctx context.Context, arg AddRecipeParams) (AddRecipeRow, error)
func (*Queries) DeleteIngredientFromStep ¶
func (q *Queries) DeleteIngredientFromStep(ctx context.Context, arg DeleteIngredientFromStepParams) error
func (*Queries) DeleteStepByID ¶
func (*Queries) GetAllIngredients ¶
func (q *Queries) GetAllIngredients(ctx context.Context) ([]Ingredient, error)
func (*Queries) GetAllRecipesByName ¶
func (q *Queries) GetAllRecipesByName(ctx context.Context) ([]GetAllRecipesByNameRow, error)
func (*Queries) GetIngredientNameByID ¶
func (*Queries) GetRecipeByID ¶
func (*Queries) GetStepByID ¶
func (*Queries) GetStepsForRecipeByID ¶
func (*Queries) GetTotalIngredientsForRecipe ¶
func (*Queries) UpdateBasicRecipeInformation ¶
func (q *Queries) UpdateBasicRecipeInformation(ctx context.Context, arg UpdateBasicRecipeInformationParams) error
func (*Queries) UpdateStepByID ¶
func (q *Queries) UpdateStepByID(ctx context.Context, arg UpdateStepByIDParams) error
type SchemaMigration ¶
type SchemaMigration struct {
Version string
}
type StepIngredient ¶
type UpdateStepByIDParams ¶
Click to show internal directories.
Click to hide internal directories.