mysql

package
v0.0.0-...-460cdd8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLPurchaseRepository

type MySQLPurchaseRepository struct {
	SQL *sql.DB
}

func NewMySQLPurchaseRepository

func NewMySQLPurchaseRepository(dbName string, dbUser string, dbPass string, dbHost string, dbPort string) MySQLPurchaseRepository

func (*MySQLPurchaseRepository) GetProduct

func (r *MySQLPurchaseRepository) GetProduct(ctx context.Context, ID string) (*entity.Product, error)

func (*MySQLPurchaseRepository) SetToNoAvailable

func (r *MySQLPurchaseRepository) SetToNoAvailable(ctx context.Context, ID string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL