1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2025-06-14 23:55:00 +02:00

Add go-sql-driver imports to make it easier to run the examples

This commit is contained in:
Theo
2019-02-27 17:04:14 +00:00
parent 7f7699b45e
commit 05afef726f
4 changed files with 15 additions and 4 deletions

View File

@ -1,6 +1,10 @@
package main
import "database/sql"
import (
"database/sql"
_ "github.com/go-sql-driver/mysql"
)
func recordStats(db *sql.DB, userID, productID int64) (err error) {
tx, err := db.Begin()