Skip to content

Commit 0e43215

Browse files
adding new storer directory
1 parent 726d96e commit 0e43215

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ecomm-api/storer/storer_mysql.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package storer
2+
3+
type MySQLStorer struct {
4+
5+
db *sqlx.DB
6+
}
7+
8+
func NewMySQLStorer(db *sqlx.DB) *MySQLStorer {
9+
return &MySQLStorer{
10+
db: db,
11+
}
12+
}
13+
14+
15+
func (ms *MySQLStorer) CreateProduct (ctx context.Context, p *Product)
16+
17+

0 commit comments

Comments
 (0)