Skip to content

Commit eb2171e

Browse files
author
Gustavo Chain
committed
Update example, use Open instead of Register
1 parent d0a7f15 commit eb2171e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlhooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Example:
3737
3838
// Register the driver
3939
// "sqlite-hooked" is the attached driver, and "sqlite3" is where we're attaching to
40-
sqlhooks.Register("sqlite-hooked", sqlhooks.NewDriver("sqlite3", &hooks))
40+
sql.Register("sqlite-hooked", sqlhooks.NewDriver("sqlite3", &hooks))
4141
4242
// Connect to attached driver
4343
db, _ := sql.Open("sqlite-hooked", ":memory:")

0 commit comments

Comments
 (0)