Skip to main content

map_sqlx_error

Function map_sqlx_error 

Source
pub fn map_sqlx_error(err: &Error) -> RepositoryError
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.