Versions in this module Expand all Collapse all v1 v1.0.1 Mar 22, 2024 Changes in this version + func Migrate(ctx context.Context, db *sql.DB, table string) error + type Backend struct + func NewBackend(querier sqlr.Querier) *Backend + func (b *Backend) Prices() price.Repository + func (b *Backend) Products() product.Repository + type PriceRepository struct + func NewPriceRepository(querier sqlr.Querier) *PriceRepository + func (r *PriceRepository) DeleteByProductWithKeep(ctx context.Context, productID product.ID, keep []price.ID) error + func (r *PriceRepository) Filter(ctx context.Context, productID product.ID, filter *price.Filter) ([]*price.Price, error) + func (r *PriceRepository) Upsert(ctx context.Context, pwp *price.WithProduct) (price.ID, error) + type ProductRepository struct + func NewProductRepository(querier sqlr.Querier) *ProductRepository + func (r *ProductRepository) Filter(ctx context.Context, filter *product.Filter) ([]*product.Product, error) + func (r *ProductRepository) FindByVendorAndSKU(ctx context.Context, vendor, sku string) (*product.Product, error) + func (r *ProductRepository) Upsert(ctx context.Context, prod *product.Product) (product.ID, error) + type Where struct + func (w *Where) Parameters() []interface{} + func (w *Where) String() string