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

Database Suspension #668

Merged
merged 14 commits into from
Dec 15, 2019
Merged

Database Suspension #668

merged 14 commits into from
Dec 15, 2019

Conversation

groue
Copy link
Owner

@groue groue commented Dec 12, 2019

This pull request completes #660, defines the notion of suspended databases, and supersedes #663 which is on hold.

A suspended database prevents database locks in order to avoid the 0xdead10cc exception. Basically, all accesses to a suspended database throw an error, but reads in WAL mode.

To suspend or resume a database:

  • Set the Configuration.observesSuspensionNotifications flag when you create a database queue or pool.
  • Post Database.suspendNotification and Database.resumeNotification.

The content of this pull request is 🔥 EXPERIMENTAL.

@groue groue marked this pull request as ready for review December 15, 2019 17:18
@groue groue merged commit 8512607 into development Dec 15, 2019
@groue groue deleted the dev/suspend branch December 15, 2019 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant