memos/store/db
Lincoln Nogueira c8961ad489
fix: database is locked (#1992)
* fix: database is locked

The option "_journal_mode=WAL" is currently *not* being applied when
provided in the DSN.

This issue affects only new memos installations, not older ones where
the database journal was properly set to WAL mode by the previous sqlite
library go-sqlite3.

modernc.org/sqlite DSN parsing is different from go-sqlite3. It requires
the `_pragma=` prefix and even some options order matter.

https://gitlab.com/cznic/sqlite/-/issues/115

Closes #1985

* chore: upgraded notes on sqlite DSN
2023-07-20 20:51:25 +08:00
..
migration chore: add indexes (#1959) 2023-07-15 10:26:31 +08:00
seed chore: update seed data (#1928) 2023-07-12 00:16:19 +08:00
db.go fix: database is locked (#1992) 2023-07-20 20:51:25 +08:00
migration_history.go fix: schema migrate (#1846) 2023-06-20 12:18:04 +08:00