paint-brush
How to use databases with Golangby@remco_verhoef
29,032 reads
29,032 reads

How to use databases with Golang

by Remco Verhoef7mJanuary 25th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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.

Company Mentioned

Mention Thumbnail
featured image - How to use databases with Golang
Remco Verhoef HackerNoon profile picture
Remco Verhoef

Remco Verhoef

@remco_verhoef

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Root
Stackoverflow
Email-database
Github