Go Database Drivers

Open-source Go projects categorized as Database Drivers

Top 23 Go Database Driver Projects

Database Drivers
  1. Redis

    Redis Go client

    Project mention: War Story: We Survived a 2-Hour Outage with Redis 8.0 Cluster and Sentinel | dev.to | 2026-05-02

    Redis 8.0’s default Sentinel election timeout of 500ms is tuned for single-region deployments with sub-10ms inter-node latency. For any cluster spanning multiple regions, cloud availability zones, or with more than 10 shards, this default is dangerously low. Our outage was directly caused by Sentinel nodes in us-west-2 (68ms RTT from us-east-1) missing election heartbeats due to the 500ms timeout, triggering false failovers that cascaded across the cluster. Always benchmark your election timeout against your actual network latency: use the go-redis client to measure RTT between Sentinel nodes, then set election-timeout to at least 4x the maximum RTT between any two Sentinels. For our 68ms RTT, 4x is 272ms, but we set 2000ms to add headroom for network jitter during peak traffic. This single change eliminated 14 false failovers per month. Always validate timeout changes with the benchmark tool from Code Example 3 before rolling to production.

  2. AppSignal

    Monitoring that respects your time & budget. APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.

    AppSignal logo
  3. sqlx

    general purpose extensions to golang's database/sql

    Project mention: Golang proposal: container/: generic collection types | news.ycombinator.com | 2026-07-31

    Well, better late than never. Stuff like sets or a typed heap is long overdue. Maybe they'll even add iterator API for database/sql results this decade too (something like my pull request for sqlx https://github.com/jmoiron/sqlx/pull/990 but maybe more polished)

  4. go-sql-driver/mysql

    Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package (by go-sql-driver)

  5. cayley

    An open-source graph database

  6. pgx

    PostgreSQL driver and toolkit for Go

    Project mention: How to Implement Idempotency Keys in Go with PostgreSQL | dev.to | 2026-10-12

    Go 1.25 or later, which pgx v5.11.0, the PostgreSQL driver, requires. The code also uses crypto/rand.Text (Go 1.24) and method patterns such as "POST /payments" in http.HandleFunc, which arrived in Go 1.22.

  7. bleve

    A modern text/numeric/geo-spatial/vector indexing library for go

    Project mention: My note server has no search engine. Search still answers in 0.4 ms. | dev.to | 2026-07-16

    vellum MCP is a self-hosted server over a folder of markdown, your agent's memory as plain .md files you own. Search is the feature everyone expects to be "solved" by a library: bolt on bleve or a vector index and move on.

  8. pq

    Go PostgreSQL driver for database/sql

    Project mention: Go is portable, until it isn't | news.ycombinator.com | 2025-12-12

    > anything that depends on Go's Postgres client requires libpq which requires libc

    Try https://github.com/lib/pq

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. redigo

    Go client for Redis

  11. mongo-go-driver

    The Official Golang driver for MongoDB

  12. elastic

    Deprecated: Use the official Elasticsearch client for Go at https://github.com/elastic/go-elasticsearch

  13. go-elasticsearch

    The official Go client for Elasticsearch

    Project mention: Como criar uma "busca inteligente" para seu Wiki utilizando Go e ElasticSearch | dev.to | 2025-10-21

    Web Server Go Elasticsearch client Documentação Oficial do Elasticsearch JSON Handling in Go Type Assertions in Go

  14. clickhouse-go

    Golang driver for ClickHouse

  15. gocql

    GoCQL Driver for Apache Cassandra®

  16. gomemcache

    Go Memcached client library #golang

  17. go-mssqldb

    Microsoft SQL server driver written in go language

  18. gorethink

    Go language driver for RethinkDB

  19. qmgo

    Qmgo - The Go driver for MongoDB. It‘s based on official mongo-go-driver but easier to use like Mgo.

  20. elasticsql

    convert sql to elasticsearch DSL in golang(go)

  21. elastigo

    A Go (golang) based Elasticsearch client library.

  22. mgm

    Mongo Go Models (mgm) is a fast and simple MongoDB ODM for Go (based on official Mongo Go Driver) (by Kamva)

  23. go-oci8

    Oracle driver for Go using database/sql

  24. Sqinn-Go

    Golang SQLite without cgo

  25. aerospike-client-go

    Aerospike Client Go

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Database Drivers discussion

Log in or Post with

Go Database Drivers related posts

  • How to Implement Idempotency Keys in Go with PostgreSQL

    1 project | dev.to | 12 Oct 2026
  • Golang proposal: container/: generic collection types

    4 projects | news.ycombinator.com | 31 Jul 2026
  • My note server has no search engine. Search still answers in 0.4 ms.

    2 projects | dev.to | 16 Jul 2026
  • Why I Built a Go SQL Helper

    3 projects | dev.to | 12 Jun 2026
  • PgX – Debug Postgres performance in the context of your application code

    1 project | news.ycombinator.com | 9 Jan 2026
  • Go is portable, until it isn't

    15 projects | news.ycombinator.com | 12 Dec 2025
  • Como criar uma "busca inteligente" para seu Wiki utilizando Go e ElasticSearch

    2 projects | dev.to | 21 Oct 2025
  • A note from our sponsor - SaaSHub
    www.saashub.com | 13 Oct 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Database Driver projects in Go? This list will help you:

# Project Stars
1 Redis 22,256
2 sqlx 17,725
3 go-sql-driver/mysql 15,271
4 cayley 15,063
5 pgx 14,319
6 bleve 11,233
7 pq 9,962
8 redigo 9,849
9 mongo-go-driver 8,531
10 elastic 7,451
11 go-elasticsearch 6,067
12 clickhouse-go 3,348
13 gocql 2,696
14 gomemcache 1,886
15 go-mssqldb 1,883
16 gorethink 1,647
17 qmgo 1,355
18 elasticsql 1,193
19 elastigo 941
20 mgm 762
21 go-oci8 633
22 Sqinn-Go 541
23 aerospike-client-go 458

Sponsored
Monitoring that respects your time & budget
APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.
www.appsignal.com