![](https://pawb.social/pictrs/image/474ca763-c113-4dfe-86c4-5ad05612ff29.jpeg)
![](https://lemmy.ml/pictrs/image/c0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png)
Rust used to be correct in 2014 when this was made. It’s pretty fucking good, now
Rust used to be correct in 2014 when this was made. It’s pretty fucking good, now
Happens at compile time! It’s relatively quick. You can also run a command to write the query results to file for offline type checking which is mostly useful for CI
I’m currently using SQLx which you write raw queries in and it validates them against a currently-running db, using the description of the tables to build the typing for the return type instead of relying on the user. It makes it pretty hard to write anything that supports injection
RustRover isn’t ready for actual usage, I’ve tried it
Unfortunately RustRover is still garbage for actual usage. And I refuse to use an ORM when I can just write the SQL in a more common syntax that everyone understands across every language instead of whatever inefficient library-of-the-week there is. Raw SQL is fine and can be significantly more performant. Don’t be scared.
Please tell me what IDE you’re using that’s capable of highlighting SQL syntax that’s embedded inside another language source file
Also please fucking stop with the “it’s current year stop x.” The year is not an argument.
That double indented from is hurting me
Enable LTO, abort on panic, and a higher optimization level and it’ll drop that a ton
I’ve found it great for tracking down specific things in libraries and databases I’m not terribly familiar with when I don’t know the exact term for them