Documentation ¶
Index ¶
- func CreateProduct(db *sql.DB, product *Product, ctx context.Context) error
- func DeleteProduct(db *sql.DB, productId int, ctx context.Context) error
- func GetProduct(db *sql.DB, product *Product, ctx context.Context) error
- func InitDb(db *sql.DB) error
- func New() (*sql.DB, error)
- func NewWithWrappedTracing() (*sql.DB, error)
- func PingDb(db *sql.DB, maxRetry uint64) error
- func UpdateProduct(db *sql.DB, product *Product, ctx context.Context) error
- type Product
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithWrappedTracing ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.