News for hackers. Stuff that matters.
Re:Rust Is Surprisingly Good as a Server Language by Nican on Monday July 13, 2020 @04:21AM (#23818428)
I will have to take a look Slonik.

I feel like I have been to hell and back with ORMs, between Sequelize, Entity Framework, Hibernate, SQLAlchemy, etc.. and frankly, I think they just cause more headaches than solve problems.

I would love to have strongly typed SQL queries, but I have found that Dapper [1] fills a special place in my heart.

[1] https://github.com/StackExchange/Dapper

Re:Rust Is Surprisingly Good as a Server Language by seer on Monday July 13, 2020 @09:54AM (#23820768)
I've been following https://github.com/adelsz/pgtyped for awhile. It should give you TS types from sql files (and even sql template literals) directly. Though I haven't used it in prod. Might be worth a look.