Skip to main content

is_db_disconnect

Function is_db_disconnect 

Source
pub fn is_db_disconnect(error: &(dyn Error + 'static)) -> bool
Expand description

True when anything in error’s cause chain is a sqlx::Error::Io: usually the database being reset under a local development cluster, and the cue to reacquire a connection held across ticks.