Live data from Hacker News

Rust and Htmx: Making a Slack/campfire clone

github.com

1–5 of 5 posts

Re: Rust and Htmx: Making a Slack/campfire clone

#5
YES! sqlx::query_as in the wild!

Making queries like this checks the sql is valid at compile time by connecting to the real database and running it with demo data inside a rolled-back transaction!

(If you'll forgive the self promo, I explained it better in this video https://youtu.be/pocWrUj68tU)

Rust's macro system allows you to program the compiler with each new program, and sqlx is my favourite example of this.