Too Long; Didn't Read
There are a lot of different and approaches to use databases within Golang. I don’t like many of these approaches, especially ORM’s. Many times they are generating inefficient queries, wrong locks, retrieving too much data and you don’t have a clue what is going on. After several implementations, I settled with this pattern. The pattern uses the sql abstraction library <a href="https://github.com/jmoiron/sqlx" target="_blank">sqlx</a> of jmoiron and allows complete customization and control.