Versions in this module Expand all Collapse all v1 v1.0.0 Dec 5, 2022 Changes in this version + type Query interface + Delete func(id int64) error + FilterByDeletionDate func(dates ...time.Time) Query + FilterById func(ids ...int64) Query + FilterByName func(names ...string) Query + FilterByOrigin func(origins ...string) Query + FilterByPrice func(prices ...float64) Query + FilterByQuantity func(quantities ...int64) Query + FilterByReason func(reasons ...string) Query + Get func() (*UsedIngredient, error) + Insert func(UsedIngredient) (UsedIngredient, error) + New func() Query + Page func(pageParams pgdb.OffsetPageParams) Query + Select func() ([]UsedIngredient, error) + Update func(UsedIngredient) (UsedIngredient, error) + func NewQuery(db *sqlx.DB) Query + type UsedIngredient struct + DeletionDate time.Time + Id int64 + Name string + Origin string + Price float64 + Quantity int64 + Reason string