summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/sqlite/README.md
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-04-05 10:58:28 +0100
committerLibravatar GitHub <noreply@github.com>2024-04-05 11:58:28 +0200
commit85bc140b583dfab03340c45fc3a7f75a8b75887c (patch)
treeba45d847b383ed92706a24662eed594a9ca4e826 /vendor/modernc.org/sqlite/README.md
parentfix possible nil panic (#2809) (diff)
downloadgotosocial-85bc140b583dfab03340c45fc3a7f75a8b75887c.tar.xz
[bugfix] temporarily replace `modernc.org/sqlite-v1.29.5` with `gitlab.com/NyaaaWhatsUpDoc/sqlite-v1.29.5-concurrency-workaround` (#2811)
Diffstat (limited to 'vendor/modernc.org/sqlite/README.md')
-rw-r--r--vendor/modernc.org/sqlite/README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/modernc.org/sqlite/README.md b/vendor/modernc.org/sqlite/README.md
index aa45ff87a..f47ad3240 100644
--- a/vendor/modernc.org/sqlite/README.md
+++ b/vendor/modernc.org/sqlite/README.md
@@ -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).