News for hackers. Stuff that matters.
Re:Show HN: PugSQL, a Python Port of HugSQL by buremba on Wednesday May 29, 2019 @12:09PM (#20041934)
The Java/Kotlin alternative would be `the amazing library` JDBI: http://jdbi.org/
Re:Show HN: PugSQL, a Python Port of HugSQL by BossingAround on Wednesday May 29, 2019 @03:04PM (#20044071)
Wow, this looks really good. Is there a different de-facto standard library for connecting to a DB from Java other than Hibernate? After using Hibernate for one of my extremely simple projects, I felt like I was using a tank to kill mosquitoes.
Re:Show HN: PugSQL, a Python Port of HugSQL by encloser on Wednesday May 29, 2019 @04:52PM (#20045330)
JDBC is the low level connection standard. Everything I am aware of is built ontop of JDBC.

Many people use the JPA libraries like Hibernate and EclipseLink. Another popular ORM is (my|i)batis. JDBI also seems to have a decent following.

After years of using ORMs, I vastly prefer interfaces like HugSQL unless I'm building a dead simple CRUD app. (I'm never building simple CRUD apps.)

Re:Show HN: PugSQL, a Python Port of HugSQL by BossingAround on Thursday May 30, 2019 @02:23AM (#20048861)
Are you building the DB layer in Clojure and call it from Java then, or are you writing your whole app in Clojure?