Skip to main content

mapear_error_sqlx

Function mapear_error_sqlx 

Source
pub fn mapear_error_sqlx(err: &Error) -> ErrorRepositorio
Expand description

The one place that knows Postgres error codes: a driver error, as the repository port speaks it. The caller logs it first, with its own context. An entity with references converts with mapear_error_sqlx_con instead.