mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
[PR #971] [MERGED] fix: do not use cache=shared for in-memory SQLite #521
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/971
Author: @ItalyPaleAle
Created: 9/22/2025
Status: ✅ Merged
Merged: 9/22/2025
Merged by: @kmendell
Base:
main← Head:fix-sqlite-memory📝 Commits (1)
11ebb4afix: do not use cache=shared for in-memory SQLite📊 Changes
3 files changed (+35 additions, -21 deletions)
View changed files
📝
backend/internal/bootstrap/db_bootstrap.go(+27 -12)📝
backend/internal/bootstrap/db_bootstrap_test.go(+1 -7)📝
backend/internal/utils/testing/database.go(+7 -2)📄 Description
Low-priority fix, since it primarily impacts unit tests
When using an in-memory SQLite databases, if using multiple connections with cache=shared and there's a transaction blocking the database, another one will not wait and will fail to start right away
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.