Obtaining happiness by using Diesel Async in anger
bitemyapp.com·65w
Preview
Report Post

I’ve been getting some questions from people about how to use Diesel and particularly diesel-async for interacting with SQL databases in Rust. I thought I’d write up a quick post with some patterns and examples.

The example project on GitHub for this post is located at: https://github.com/bitemyapp/better-living-through-petroleum/tree/blog/diesel-async-in-anger

The blog/diesel-async-in-anger Git tag is so you can see the version of the code that I’m using for this post.

Why Diesel Async?

The most efficient and type-safe library for integrating with databases in Rust is Diesel. Diesel can take a little to get going with and the default is synchronous rather t…

Similar Posts

Loading similar posts...