Skip to content

Commit 3f9954f

Browse files
authored
Merge pull request #164 from theodesp/examples/go-sql-driver-imports
Examples/go sql driver imports
2 parents c05e0c0 + 314ebd6 commit 3f9954f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@ See implementation examples:
3737
- [blog API server](https://github.com/DATA-DOG/go-sqlmock/tree/master/examples/blog)
3838
- [the same orders example](https://github.com/DATA-DOG/go-sqlmock/tree/master/examples/orders)
3939

40-
### Something you may want to test
40+
### Something you may want to test, assuming you use the [go-mysql-driver](https://github.com/go-sql-driver/mysql)
4141

4242
``` go
4343
package main
4444

45-
import "database/sql"
45+
import (
46+
"database/sql"
47+
48+
_ "github.com/go-sql-driver/mysql"
49+
)
4650

4751
func recordStats(db *sql.DB, userID, productID int64) (err error) {
4852
tx, err := db.Begin()

0 commit comments

Comments
 (0)