pub fn calculate_status<Res>(ctx: &SqlContext, res: &Response<Res>) -> State
Calculates the status from a result