Std.App.Database.readiness
fn
readiness: &Std.App.Database.Database -> Str -> Std.App.Health.ReadinessThis is a callable function.
What it does
A readiness check that asks the database a question.
It runs `select 1` through the started client, so an instance whose
database is not started or not answering is taken out of rotation rather
than sent requests it will fail. It belongs among readiness checks and
never among liveness checks: a database outage is not a reason to restart
a program that is otherwise well, and a liveness check that asked would
restart every instance at once.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
