Hacker News new | ask | show | jobs
by skwee357 639 days ago
AFAIK diesel is not async. On top of that, I'm pretty sure you can find a query that you won't be able to perform with diesel DSL (some obscure PostgreSQL syntax). What I like about sqlx is that it's just pure SQL.
3 comments

diesel-async adds an AsyncConnection that can be used with diesel. You can also do raw queries quite easily if you need to.
diesel-async works fine for almost all use-cases, it just layers over standard diesel calls via importing an async `RunQueryDsl` trait. I almost never think about it.
SQL is good, writing SQL using strings is not good.