| Crates.io | actix-sqlx-tx |
| lib.rs | actix-sqlx-tx |
| version | 0.1.0 |
| created_at | 2022-11-26 20:53:21.15225+00 |
| updated_at | 2022-11-26 20:53:21.15225+00 |
| description | Request-scoped sqlx transactions for actix-web |
| homepage | |
| repository | https://github.com/thlstsul/actix-sqlx-tx |
| max_upload_size | |
| id | 723455 |
| size | 38,046 |
actix-sqlx-txRequest-bound SQLx transactions for actix-web; Refer to axum-sqlx-tx.
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.