Our great sponsors
-
bloom
The simplest way to de-Google your life and business: Inbox, Calendar, Files, Contacts & much more (by skerkour)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
actix_sqlx_mysql_user_crud
A user crud written in Rust, designed to connect to a MySQL database with full integration test coverage.
AFAIK, yes https://github.com/LukeMathWalker/cargo-chef/issues/1
I use the Repository pattern where an object encapsulates all the queries. Here is an example: https://github.com/skerkour/bloom/blob/main/bloom/files/src/repository/create_file.rs https://github.com/skerkour/bloom/tree/main/bloom/files/src/repository
This is how I did a CRUD using Actix and SQLx. I, personally, did not use compile time queries. They are a good concept, I just think they need to be wrapped behind framework where they can be switched on an off by a macro or something like that.