Skip to content

thlstsul/actix-sqlx-tx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Request-scoped sqlx transactions for actix-web

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages