3 ms·
How to Work with Postgres in Go Artemiy Ryabinkov
- ashutoshgngwr 6y agoTried 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 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.