Re:SQLx – The Rust SQL Toolkit
by hyperbrainer on Monday July 28, 2025 @05:07PM
(#44715662)
I have never used SQLx, but the best SQL integration I can think of is LINQ. How does this compare to that?
[ Parent
| on HN ]
Re:SQLx – The Rust SQL Toolkit
by RonanSoleste on Monday July 28, 2025 @05:11PM
(#44715705)
Different products. I would not compare them.
LINQ is more like Diesel (https://diesel.rs/)
To expand, SQLx isn't an ORM or query builder, what it does is allow you to write raw SQL with compile-time guarantees of type safety. It does this by connecting to a dev database at compile time & uses SQL's introspection features (specifically, by preparing a statement[1]) to analyze your queries. (It can also cache this information to check without a database available, and has a basic migration facility.)
[1] https://github.com/launchbadge/sqlx/blob/main/FAQ.md#how-do-...
Re:SQLx – The Rust SQL Toolkit
by S04dKHzrKT on Monday July 28, 2025 @09:18PM
(#44717865)
In the dotnet world, SQLx is more analogous to F# type providers like FSharp.Data.SqlClient , SQLProvider or Rezoom.SQL.