Skip to main content

note_stale_plan

Function note_stale_plan 

Source
pub fn note_stale_plan(error: &Error) -> bool
Expand description

Record error if it is a stale plan, so that every connection opened before now is retired when next acquired, from every pool connect opened in this process, and the next attempt runs on a fresh one. Returns whether it was. axa::Error calls this for every sqlx error it answers, so a service that turns sqlx errors into it needs nothing more.