Converts an [sqlx::error] execution error to a [DbErr]
(err: sqlx::Error)
| 2 | |
| 3 | /// Converts an [sqlx::error] execution error to a [DbErr] |
| 4 | pub fn sqlx_error_to_exec_err(err: sqlx::Error) -> DbErr { |
| 5 | DbErr::Exec(RuntimeErr::SqlxError(err)) |
| 6 | } |
| 7 | |
| 8 | /// Converts an [sqlx::error] query error to a [DbErr] |
| 9 | pub fn sqlx_error_to_query_err(err: sqlx::Error) -> DbErr { |
no outgoing calls
no test coverage detected