SQLx in 12 minutes - Rust + Actix Web + PostgreSQL (2022)

In this video you’ll learn how to setup data persistence in an Actix Web API in Rust using SQLx to connect to a PostgreSQL Database. SQLx is a fantastic alternative to Diesel. It requires less boilerplate than Diesel and is super simple to implement. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can support my endeavors through: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Complete code found here: Music by 00:00 Introduction 01:00 Pool Creation 03:25 GET /users 07:40 GET /users/{id}/articles 09:26 POST /users/{id}/articles 11:52 Test Run 13:07 Thank you -~-~~-~~~-~~-~- Please watch: “Box / Rc / Arc / Mutex - Smart Pointers Simplified - Rust (2022)“ -~-~~-~~~-~~-~-
Back to Top