Skip to content

Commit

Permalink
Merge pull request #164 from theodesp/examples/go-sql-driver-imports
Browse files Browse the repository at this point in the history
Examples/go sql driver imports
  • Loading branch information
l3pp4rd authored Mar 1, 2019
2 parents c05e0c0 + 314ebd6 commit 3f9954f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,16 @@ See implementation examples:
- [blog API server](https://github.com/DATA-DOG/go-sqlmock/tree/master/examples/blog)
- [the same orders example](https://github.com/DATA-DOG/go-sqlmock/tree/master/examples/orders)

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

``` go
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()
Expand Down

0 comments on commit 3f9954f

Please sign in to comment.