pub fn sqlstate_for_reddb_error(err: &RedDBError) -> SqlStateExpand description
Map a RedDBError variant to its SQLSTATE code. Used by
the wire protocol’s error response frame so clients get
the standardized identifier alongside the human message.