Some useful types for database-using Rust web apps
https://boinkor.net/2024/04/some-useful-types-for-database-using-rust-web-apps/
·
I’ve been writing a little web app in rust lately, and in it I decided to try to do it without an ORM. Instead, I modeled data access in a way that resembles the Data Access Layer pattern: You make a set of abstractions that maps the “business logic” to how the data is stored in the data store. Here are some types that I found useful in this journey so far.