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