Yes ORMs are terrible but there is a middle ground required. Something to nicely pool connections and handle all the boilerplate involved in binding parameters to prepared statements. I normally roll my own but would love to find a good library that does it all.
One problem I've yet to find a good solution to is automatic reconnect on database errors with proper transaction support.
One problem I've yet to find a good solution to is automatic reconnect on database errors with proper transaction support.