Macro impl_transaction_handler

Source
macro_rules! impl_transaction_handler {
    ($type:ty, $db:ty, $item:ty, $error:ty) => { ... };
}
Expand description

Macro to implement the TransactionHandler trait for a type

This macro makes it easier to implement the TransactionHandler trait for types that work with databases. It automatically handles the Box::pin wrapping for async functions.