Simple queries are a complete breeze. Loading all users from a database:
Loading all the posts for a user:
Diesel's powerful query builder helps you construct queries as simple or complex as you need, at 0 cost.
It's just about reading data. Diesel makes it easy to use structs for new records.
If you need data from the rows you inserted, just change `execute` to `get_result` or `get_results`. Diesel will take care of the rest.
Diesel's codegen can generate several ways to update a row, letting you encapsulate your logic in the way that makes sense for your app.
