mirror of
https://gitlab.com/cznic/sqlite.git
synced 2025-05-22 23:28:02 +00:00
Merge branch 'tyge-master-patch-33989' into 'master'
docs(README): add `database is locked` error to new "troubleshooting" section See merge request cznic/sqlite!69
This commit is contained in:
1
AUTHORS
1
AUTHORS
@ -22,6 +22,7 @@ Josh Klein <josh.klein@outlook.com>
|
||||
Logan Snow <logansnow@protonmail.com>
|
||||
Michael Hoffmann <mhoffm@posteo.de>
|
||||
Michael Rykov <mrykov@gmail.com>
|
||||
Morgan Bazalgette <morgan@howl.moe>
|
||||
Ross Light <ross@zombiezen.com>
|
||||
Saed SayedAhmed <saadmtsa@gmail.com>
|
||||
Steffen Butzer <steffen(dot)butzer@outlook.com>
|
||||
|
@ -27,6 +27,7 @@ Mark Summerfield <mark@qtrac.eu>
|
||||
Matthew Gabeler-Lee <fastcat@gmail.com>
|
||||
Michael Hoffmann <mhoffm@posteo.de>
|
||||
Michael Rykov <mrykov@gmail.com>
|
||||
Morgan Bazalgette <morgan@howl.moe>
|
||||
Romain Le Disez <r.gitlab@ledisez.net>
|
||||
Ross Light <ross@zombiezen.com>
|
||||
Saed SayedAhmed <saadmtsa@gmail.com>
|
||||
|
@ -16,7 +16,7 @@ allowing one of the maintainers to work on it also in office hours.
|
||||
|
||||
## Documentation
|
||||
|
||||
[godoc.org/modernc.org/sqlite](http://godoc.org/modernc.org/sqlite)
|
||||
[pkg.go.dev/modernc.org/sqlite](https://pkg.go.dev/modernc.org/sqlite)
|
||||
|
||||
## Builders
|
||||
|
||||
@ -74,3 +74,8 @@ RAM. Shown are the best of 3 runs.
|
||||
TOTAL....................................................... 5.525s TOTAL....................................................... 4.637s
|
||||
|
||||
This particular test executes 16.1% faster in the C version.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
* Q: **How can I write to a database concurrently without getting the `database is locked` error (or `SQLITE_BUSY`)?**
|
||||
* A: You can't. The C sqlite implementation does not allow concurrent writes, and this libary does not modify that behaviour. You can, however, use [DB.SetMaxOpenConns(1)](https://pkg.go.dev/database/sql#DB.SetMaxOpenConns) so that only 1 connection is ever used by the `DB`, allowing concurrent access to DB without making the writes concurrent. More information on issues [#65](https://gitlab.com/cznic/sqlite/-/issues/65) and [#106](https://gitlab.com/cznic/sqlite/-/issues/106).
|
||||
|
Reference in New Issue
Block a user