Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/209 #593

Merged
merged 1 commit into from
Jun 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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