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

Remove r2d2-sqlite #749

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Conversation

Mark-Simulacrum
Copy link
Member

r2d2-sqlite opens connections in shared cache mode: https://github.com/ivanceras/r2d2-sqlite/blob/06aa366cfe0846e491550b7e177ca0024bf923a9/src/lib.rs#L141

Per documentation (https://www.sqlite.org/sharedcache.html#dontuse), this is discouraged. In practice the dependency is trivially replaceable anyway.

@Mark-Simulacrum Mark-Simulacrum force-pushed the debug-crater branch 2 times, most recently from 2207774 to 80b0ee1 Compare December 7, 2024 19:26
r2d2-sqlite opens connections in shared cache mode:
https://github.com/ivanceras/r2d2-sqlite/blob/06aa366cfe0846e491550b7e177ca0024bf923a9/src/lib.rs#L141

Per documentation (https://www.sqlite.org/sharedcache.html#dontuse),
this is discouraged. In practice the dependency is trivially replaceable
anyway.
@Mark-Simulacrum Mark-Simulacrum added this pull request to the merge queue Dec 7, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 7, 2024
@Mark-Simulacrum Mark-Simulacrum added this pull request to the merge queue Dec 7, 2024
Merged via the queue into rust-lang:master with commit f987cf4 Dec 7, 2024
3 checks passed
@Mark-Simulacrum Mark-Simulacrum deleted the debug-crater branch December 7, 2024 20:32
}

fn has_broken(&self, conn: &mut Self::Connection) -> bool {
self.is_valid(conn).is_ok()
Copy link

Choose a reason for hiding this comment

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

stupid question, is this not inverted?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, good catch. I'll get it fixed in the next PR.

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.

2 participants