Skip to content
rusthacks.dev

Tag

actix-web

2 posts

Flat illustration for the post “Actix Web With SQLx and Connection Pools in One Repository”, composed around database.
WebGuide

Actix Web With SQLx and Connection Pools in One Repository

Wire Actix Web 4 to a SQLx 0.9 pool the right way: build the pool once outside the factory closure, share it as web::Data, map errors with ResponseError, and see the 8 versus 28 connection difference when it goes wrong.

16 min read