Lifetime issues in async transaction wrapper with closures in Rust
I’m working on a Rust project using the repository pattern and want to implement a transaction execution wrapper to handle commit/rollback functionality. However, I’m facing difficulties managing lifetimes with futures in closures.
Transaction wrapper SQLX Rust
I have next code