Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Tried sqlx a few weeks ago. I personally didn't like it. I come from a Hibernate/JVM background. Writing a data access layer with that much boilerplate isn't something I consider to be practical in today's fast paced environments.

After sqlx, I gave sqlc (https://github.com/kyleconroy/sqlc) a try and I found it to be much more painless than any other database solution (for PostgreSQL) for Golang.

Edit: sqlc is an inversed solution. Instead of generating SQL queries using Golang, you write annotated SQL queries and sqlc generates Golang source from them.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: