Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Migrated every set of benchmark tests, but one #1

Merged
merged 13 commits into from
Sep 22, 2016
Prev Previous commit
Next Next commit
sql stubs for mysql and minor fixes
  • Loading branch information
Arturo Vergara committed Sep 8, 2016
commit 57d03e73b93ad0fafb0232ff1e197a8645bbddd4
10 changes: 9 additions & 1 deletion mysql/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
insertIntoArtistWithPlaceholderReturningID = "INSERT INTO `artist` (`name`) VALUES(?)"
selectFromArtistWhereName = "SELECT * FROM `artist` WHERE `name` = ?"
updateArtistWhereName = "UPDATE `artist` SET `name` = ? WHERE `name` = ?"
deleteArtistWhereName = "DELETE FROM `artis` WHERE `name` = $1"
deleteArtistWhereName = "DELETE FROM `artist` WHERE `name` = ?"
)

const (
Expand Down Expand Up @@ -121,3 +121,11 @@ func tearUp() error {

return nil
}

func beginSQL(d *sql.DB) (*sql.DB, error) {
return d, nil
}

func doneSQL(t *sql.DB) error {
return nil
}