Skip to content

Commit

Permalink
link to func 'sql.OpenDB': fix incorrect line number (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored Aug 23, 2024
1 parent cf68f82 commit 25fc5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if err != nil {
defer db.Close()
```

Alternatively, you can use [sql.OpenDB](https://cs.opensource.google/go/go/+/refs/tags/go1.23.0:src/database/sql/sql.go;l=855). That way, you can perform initialization steps in a callback function before opening the database.
Alternatively, you can use [sql.OpenDB](https://cs.opensource.google/go/go/+/refs/tags/go1.23.0:src/database/sql/sql.go;l=824). That way, you can perform initialization steps in a callback function before opening the database.
Here's an example that installs and loads the JSON extension when opening a database with `sql.OpenDB(connector)`.

```go
Expand Down

0 comments on commit 25fc5b0

Please sign in to comment.