axum-sqlx-tx

Crates.ioaxum-sqlx-tx
lib.rsaxum-sqlx-tx
version0.9.0
sourcesrc
created_at2022-03-04 01:31:21.458477
updated_at2024-07-26 20:37:55.551542
descriptionRequest-scoped SQLx transactions for axum
homepage
repositoryhttps://github.com/digital-society-coop/axum-sqlx-tx/
max_upload_size
id543290
size94,115
Chris Connelly (connec)

documentation

README

axum-sqlx-tx

Request-bound SQLx transactions for axum.

Summary

axum-sqlx-tx provides an axum extractor for obtaining a request-bound transaction. The transaction begins the first time the extractor is used, and is stored with the request for use by other middleware/handlers. The transaction is resolved depending on the status code of the response – successful (2XX) responses will commit the transaction, otherwise it will be rolled back.

See the crate documentation for more information and examples.

Commit count: 98

cargo fmt