memos/store
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
..
db fix: database is locked (#1992) 2023-07-20 20:51:25 +08:00
activity.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
cache.go refactor: migrate definition to api v1 (#1879) 2023-07-02 18:56:25 +08:00
common.go refactor: migrate storage to apiv1 (#1890) 2023-07-04 10:05:57 +08:00
idp.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
memo.go refactor: migrate memo to apiv1 (#1907) 2023-07-06 21:56:42 +08:00
memo_organizer.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
memo_relation.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
memo_resource.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
resource.go chore: remove resource public id (#1912) 2023-07-08 11:29:50 +08:00
shortcut.go refactor: migrate memo to apiv1 (#1907) 2023-07-06 21:56:42 +08:00
storage.go refactor: migrate memo to apiv1 (#1907) 2023-07-06 21:56:42 +08:00
store.go feat: add support for auto backup db file (#1950) 2023-07-14 20:05:07 +08:00
system_setting.go refactor: migrate memo to apiv1 (#1907) 2023-07-06 21:56:42 +08:00
tag.go refactor: migrate memo to apiv1 (#1907) 2023-07-06 21:56:42 +08:00
user.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
user_setting.go refactor: migrate memo to apiv1 (#1907) 2023-07-06 21:56:42 +08:00