News for hackers. Stuff that matters.
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by pbreit on Friday February 05, 2016 @07:18PM (#11045772)
I generally agree. Are there frameworks or db access libraries that just offer some helpers around plain ole SQL? Seems like very framework/ORM invents it's own query DSL.
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by mking1024 on Friday February 05, 2016 @11:55PM (#11046604)
In the .NET world we have Dapper (https://github.com/StackExchange/dapper-dot-net), which lets us write queries in plain old SQL. It's a very useful little library. I believe StackOverflow use it for their data access.

Example:

  var posts = connection.Query<Post>("select * from posts where user_id = @UserId", param: new { UserId = 1 });
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by arethuza on Saturday February 06, 2016 @12:54PM (#11048801)
I really like Dapper - allows you to write "raw" SQL but does the tedious bit of mapping to/from objects in a nice way.
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by bluejekyll on Friday February 05, 2016 @08:50PM (#11046107)
In Java I really liked MyBatis for this, and I think fits what you are asking.