Announcing new crate - "hugsqlx": turning SQLx queries into Rust functions

87 points haksior

Hey, I'm a relatively new rustacean coming from clojure world. One of things I really enjoyed in clojure ecosystem when working with databases and SQLs were 2 awesome clojure libraries - hugsql and conman which allowed for interesting separation of SQLs and source code.

I thought, I could try to do similar thing in Rust in a very limited way for now (learning procedural macros by the way), based on awesome SQLx. And here there is - hugsqlx, still at PoC stage but hopefully useful enough to give you some initial impression.

For more detailed motivation and current status of the crate, have a look at the blog note. I hope you find it interesting.