Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
For database communication we will use go-pg module. You can install it by running go get github.com/go-pg/pg/v10. This will install version 10 of go-pg module, which is latest version at the time of writing this guide. Now create new directory internal/database/ and file database.go inside of it.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
- Clean Transactions in Golang Hexagon
- A Proposal for Adding Generics to Go
- Does Go, has something similar to Laravel eloquent (ORM) ?
- When creating an API (or even a website) what's the best practice of initializing a database connection and using it across the application where it's necessary?
- Show HN: A Go framework for your projects