Documentation ¶
Overview ¶
Package defines CRUD comms between service layer with model layer in postgres
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAttributesDriver ¶
func NewAttributesDriver(db *sqlx.DB) models.AttributesRepository
NewAttributesDriver creates a sqlx.DB of attributes.Repository
func NewProductsDriver ¶
func NewProductsDriver(db *sqlx.DB) models.ProductsRepository
NewProductsDriver defines a sqlx.DB represents products.Repository interface
Types ¶
type AttributesDriver ¶
AttributesDriver ...
func (*AttributesDriver) FetchAll ¶
func (p *AttributesDriver) FetchAll(ctx context.Context) (attr []models.Attributes, err error)
FetchAll returns attribute table
type ProductsDriver ¶
ProductsDriver ...
Click to show internal directories.
Click to hide internal directories.