sgrif / diesel.rs-website

MIT License
32 stars 97 forks source link

Show usage of `sql_query` on the homepage #62

Closed sgrif closed 6 years ago

sgrif commented 6 years ago

On Reddit it was recently mentioned that sql_query felt like a second class API. That was never the intention, and I think it's worth promoting here.

Either way, I think that sql_query and #[derive(QueryableByName)] is much easier to use than the alternatives, even if that's the only part of Diesel you actually use. We should promote it as such.

dcarosone commented 6 years ago

It doesn't seem to be rendering right.

image

vs

image

and the content hasn't escaped the <>:

image