MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / sqlx_error_to_exec_err

Function sqlx_error_to_exec_err

src/driver/sqlx_common.rs:4–6  ·  view source on GitHub ↗

Converts an [sqlx::error] execution error to a [DbErr]

(err: sqlx::Error)

Source from the content-addressed store, hash-verified

2
3/// Converts an [sqlx::error] execution error to a [DbErr]
4pub 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]
9pub fn sqlx_error_to_query_err(err: sqlx::Error) -> DbErr {

Callers 3

execute_unpreparedMethod · 0.85
execute_unpreparedMethod · 0.85
execute_unpreparedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected