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

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

    SaaSHub logo
  3. sqlx

    general purpose extensions to golang's database/sql

    Project mention: MERN Stack Alternatives in Golang | dev.to | 2025-09-22

    sqlx: Extensions to Go's standard database/sql library for easier database interactions.

  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: PgX – Debug Postgres performance in the context of your application code | news.ycombinator.com | 2026-01-09
  7. bleve

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

    Project mention: Show HN: I Wrote a Full Text Search Engine from Scratch in Go | news.ycombinator.com | 2025-10-09

    Would love to hear how this compares to another popular go based full text search engine (with a not too dissimilar name) https://github.com/blevesearch/bleve?

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

    Go client for Redis

  10. mongo-go-driver

    The Official Golang driver for MongoDB

    Project mention: MERN Stack Alternatives in Golang | dev.to | 2025-09-22

    MongoDB Go Driver: The official MongoDB driver for Golang, allowing you to interact with MongoDB databases.

  11. elastic

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

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

  13. clickhouse-go

    Golang driver for ClickHouse

  14. gocql

    GoCQL Driver for Apache Cassandra®

  15. go-mssqldb

    Microsoft SQL server driver written in go language

  16. gomemcache

    Go Memcached client library #golang

  17. gorethink

    Go language driver for RethinkDB

  18. qmgo

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

  19. elasticsql

    convert sql to elasticsearch DSL in golang(go)

  20. elastigo

    A Go (golang) based Elasticsearch client library.

  21. mgm

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

  22. go-oci8

    Oracle driver for Go using database/sql

  23. Sqinn-Go

    Golang SQLite without cgo

  24. aerospike-client-go

    Aerospike Client Go

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

  • 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
  • Show HN: I Wrote a Full Text Search Engine from Scratch in Go

    5 projects | news.ycombinator.com | 9 Oct 2025
  • MERN Stack Alternatives in Golang

    15 projects | dev.to | 22 Sep 2025
  • Turning PostgreSQL into a Robust Queue for Go Applications

    1 project | dev.to | 21 Sep 2025
  • JWT Auth (Golang)

    6 projects | dev.to | 22 Jun 2025
  • A note from our sponsor - SaaSHub
    www.saashub.com | 10 Jun 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,127
2 sqlx 17,616
3 go-sql-driver/mysql 15,244
4 cayley 15,043
5 pgx 13,890
6 bleve 11,095
7 pq 9,897
8 redigo 9,861
9 mongo-go-driver 8,521
10 elastic 7,457
11 go-elasticsearch 6,051
12 clickhouse-go 3,299
13 gocql 2,684
14 go-mssqldb 1,883
15 gomemcache 1,867
16 gorethink 1,648
17 qmgo 1,353
18 elasticsql 1,194
19 elastigo 941
20 mgm 764
21 go-oci8 632
22 Sqinn-Go 531
23 aerospike-client-go 459

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com