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

feat!: ping and select_db return Result #355

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

robjtede
Copy link
Contributor

@robjtede robjtede commented Jul 8, 2023

Motivation

It would be nicer to use .ping() in r2d2_mysql's health checks for connections. As it is, we have to either run a query or use .ping() and lose source information.

Notes

It is easy for downstream users to call .is_ok() on the Result to get the bool back. It is not possible, however, to go the other way without losing information.

This is a breaking API change.

@robjtede robjtede marked this pull request as ready for review July 8, 2023 23:55
@blackbeam blackbeam merged commit 0340244 into blackbeam:master Mar 18, 2024
17 of 19 checks passed
@robjtede robjtede deleted the ping-result branch March 18, 2024 15:12
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