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

Add support for different SQLite journal modes #193

Merged
merged 5 commits into from
Sep 30, 2024

Conversation

JHabz
Copy link
Contributor

@JHabz JHabz commented Sep 23, 2024

Issues:

N/A

Description of changes:

Describe the current behavior and how your code changes that behavior. If there are no issues that this PR resolves, please create one first.

Allows for changing the journal mode for SQLite. This potentially also mitigates an issue where the database could get corrupted if a connection terminates while being updated from the default journal mode.

Call-outs:

Point out areas that need special attention or support during the review process. Discuss architecture or design changes.

N/A

Testing:

How is this change tested (unit tests, fuzz tests, etc.)? Are there any testing steps to be verified by the reviewer?

Added a unit test covering the functionality. Existing unit tests which tangentially use the function are also passing.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT license.

@JHabz JHabz requested a review from a team as a code owner September 23, 2024 17:44
mls-rs-provider-sqlite/src/lib.rs Outdated Show resolved Hide resolved
mls-rs-provider-sqlite/src/lib.rs Outdated Show resolved Hide resolved
mls-rs-provider-sqlite/src/lib.rs Outdated Show resolved Hide resolved
mls-rs-provider-sqlite/Cargo.toml Outdated Show resolved Hide resolved
mls-rs-provider-sqlite/src/lib.rs Outdated Show resolved Hide resolved
mls-rs-provider-sqlite/src/lib.rs Outdated Show resolved Hide resolved
mls-rs/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@stefunctional stefunctional left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you!

@tomleavy tomleavy merged commit 1a1fa84 into awslabs:main Sep 30, 2024
17 checks passed
@JHabz JHabz deleted the journal-mode branch September 30, 2024 15:55
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.

3 participants