Skip to main content

sql_check

Function sql_check 

Source
pub fn sql_check(db: Db) -> impl Fn() -> CheckFuture + Send + Sync
Expand description

A check that the database answers SELECT 1 through db’s existing pool. SQL backends only: on MongoDB or Redis it fails, so write a check with the client the app already has.