Closed robjtede closed 8 months ago
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.
.ping()
r2d2_mysql
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.
.is_ok()
Result
This is a breaking API change.
Motivation
It would be nicer to use
.ping()
inr2d2_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 theResult
to get the bool back. It is not possible, however, to go the other way without losing information.This is a breaking API change.