Skip to main content

mapear_error_sqlx_con

Function mapear_error_sqlx_con 

Source
pub fn mapear_error_sqlx_con(
    err: &Error,
    references: &[ClaveForanea],
) -> ErrorRepositorio
Expand description

mapear_error_sqlx, knowing the entity’s foreign keys: a violation of one of them is ErrorRepositorio::ReferenciaInexistente with its field. One the list does not name is Unavailable — nothing can tell the caller which input was wrong.