I'm sure as a Go engineer you've had to work with raw SQL queries in Go before! Maintaining raw SQL queries can be a pain. So in this video, I discuss a pattern I've been following recently to help manage SQL queries within my repository implementations. It's a simple concept but nonetheless, I thought it was worth a video as I've seen some pretty unmaintable code dealing with this in the past. This is also a pretty good example of the repository pattern in Golang.
Integration tests for Postres in Go? • Postgres Integration tests in Golang?...
Discord: / discord
Twitter/X: https:/twitter.com/samvcodes
Github: https://github.com/samverrall