macro_rules! sqlx_error {
() => { ... };
($desc:expr) => { ... };
}
Expand description
The macro adds error path and optional description tosqlx::Error
.
If you have a single sqlx query per function and the function path by itself provides enough
context you can just use sqlx_error!()
. If it’s not enough you can provide an additional
message with sqlx_error!("more context")
.