Skip to content

Commit

Permalink
Update example, use Open instead of Register
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Chain committed May 1, 2016
1 parent d0a7f15 commit eb2171e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Example:
// Register the driver
// "sqlite-hooked" is the attached driver, and "sqlite3" is where we're attaching to
sqlhooks.Register("sqlite-hooked", sqlhooks.NewDriver("sqlite3", &hooks))
sql.Register("sqlite-hooked", sqlhooks.NewDriver("sqlite3", &hooks))
// Connect to attached driver
db, _ := sql.Open("sqlite-hooked", ":memory:")
Expand Down

0 comments on commit eb2171e

Please sign in to comment.