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?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • facemasq

    A web-based interface for DNSMasq that can operate as a stand alone network scanner

  • bun

    SQL-first Golang ORM (by uptrace)

  • 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.

    InfluxDB logo
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.

Suggest a related project

Related posts

  • Why ORMs are so hated?

    4 projects | /r/golang | 11 May 2023
  • Does Go, has something similar to Laravel eloquent (ORM) ?

    7 projects | /r/golang | 11 Apr 2023
  • GORM

    16 projects | /r/golang | 16 Feb 2023
  • Anything like sqlc for Rust?

    5 projects | /r/rust | 1 Jan 2023
  • Can anyone help me on how you are using golang with databases in production systems?

    6 projects | /r/golang | 18 Dec 2022