Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite unlock notification #1658

Merged
merged 2 commits into from Feb 16, 2022
Merged

Conversation

madadam
Copy link
Contributor

@madadam madadam commented Jan 27, 2022

This PR implement unlock notification to avoid SQLITE_LOCKED ("database table is locked") errors when running concurrent queries. The implementation is basically rustified version of the example from the official sqlite docs on https://www.sqlite.org/unlock_notify.html.

Closes #1649

@thomaseizinger
Copy link

If this lands, I'd be great to include in a point release on top of 0.5.10!

madadam added a commit to madadam/ouisync that referenced this pull request Jan 31, 2022
Temporary use a fork of sqlx until the necessary changes (launchbadge/sqlx#1658) are merged upstream.
madadam added a commit to equalitie/ouisync that referenced this pull request Feb 1, 2022
Temporary use a fork of sqlx until the necessary changes (launchbadge/sqlx#1658) are merged upstream.
@abonander abonander merged commit 347374b into launchbadge:master Feb 16, 2022
@madadam madadam deleted the sqlite-unlock-notify branch September 13, 2023 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQLite: use unlock notification to avoid SQLITE_LOCKED errors
3 participants