Skip to content

Commit

Permalink
fix/209
Browse files Browse the repository at this point in the history
Closes #209

[skip ci]
  • Loading branch information
gjrtimmer committed Jun 12, 2018
1 parent d31a44a commit 578beef
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ Supported Golang version:
- [User Authentication](#user-authentication)
- [Compile](#compile)
- [Usage](#usage)
-
- [Extensions](#extensions)
- [Spatialite](#spatialite)
- [FAQ](#faq)
Expand Down Expand Up @@ -478,6 +477,25 @@ For an example see [shaxbee/go-spatialite](https://github.com/shaxbee/go-spatial
More infomation see [#305](https://github.com/mattn/go-sqlite3/issues/305)
- Error: `database is locked`
When you get an database is locked. Please use the following options.
Add to DSN: `cache=shared`
Example:
```go
db, err := sql.Open("sqlite3", "file:locked.sqlite?cache=shared")
```
Second please set the database connections of the SQL package to 1.
```go
db.SetMaxOpenConn(1)
```
More information see [#209](https://github.com/mattn/go-sqlite3/issues/209)
# License
MIT: http://mattn.mit-license.org/2018
Expand Down

0 comments on commit 578beef

Please sign in to comment.