actix-sqlx-tx

Crates.ioactix-sqlx-tx
lib.rsactix-sqlx-tx
version0.1.0
sourcesrc
created_at2022-11-26 20:53:21.15225
updated_at2022-11-26 20:53:21.15225
descriptionRequest-scoped sqlx transactions for actix-web
homepage
repositoryhttps://github.com/thlstsul/actix-sqlx-tx
max_upload_size
id723455
size38,046
THELOSTSOUL (thlstsul)

documentation

README

actix-sqlx-tx

Request-bound SQLx transactions for actix-web; Refer to axum-sqlx-tx.

Summary

actix-sqlx-tx provides an actix-web middleware for obtaining a request-bound transaction. The transaction begins the first time the middleware 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: 5

cargo fmt