Skip to main content

with_transaction

Function with_transaction 

Source
pub async fn with_transaction<F, T>(pool: &SqlxPool, f: F) -> SqlxResult<T>
where F: FnOnce(&SqlxPool) -> BoxFuture<'_, Result<T, SqlxError>>,
Expand description

Generic transaction wrapper for the SqlxPool enum.