NoSQL Drivers

29 projects

This subcategory lists clients for non-relational databases: key-value stores such as Redis and Memcached, document databases such as MongoDB, Couchbase and CouchDB, and graph and wide-column stores. Unlike SQL drivers, these do not share a common interface like database/sql, so each client has its own API, connection pooling and error handling.

For Redis, redis/go-redis is the most used client and is maintained under the Redis organization; it supports clusters, Sentinel, pipelines and pub/sub. rueidis is a RESP3 client with automatic pipelining and server-assisted client-side caching. gomodule/redigo is the older, lower-level client with a simpler connection model. For MongoDB, mongo-go-driver is the official driver; the older mgo is unmaintained, and qmgo and mgm add friendlier, model-based APIs on top of the official driver. bradfitz/gomemcache is the common Memcached client, and gocb and aerospike-client-go are official SDKs for Couchbase and Aerospike.

Prefer the vendor's official client when one exists, because it follows server features and protocol changes first. For Redis, go-redis is the safe default and rueidis is worth testing when client-side caching or very high request rates matter. Wrap whichever client you choose behind a small interface in your code so tests and later migrations stay simple.

redis

Redis client for Golang.

github.com/redis/go-redis/v9Go 1.26+ 6 dependenciesv9.23.0updated today

22.3k

redigoby gomodule

Redigo is a Go client for the Redis database.

github.com/gomodule/redigoGo 1.17+ 1 dependencyv1.9.3updated 1y ago

9.8k

mongo-go-driverby mongodb

Official MongoDB driver for the Go language.

go.mongodb.org/mongo-driver/v2Go 1.25+ 8 dependenciesv2.9.2updated 2d ago

8.5k

rueidisby rueian

Fast Redis RESP3 client with auto pipelining and server-assisted client side caching.

github.com/redis/rueidisGo 1.25+ 2 dependenciesv1.0.79updated 1d ago

3k

mgoby globalsign

(unmaintained) MongoDB driver for the Go language that implements a rich and well tested selection of features under a very simple API following standard Go idioms.

r2018.06.15updated 5y ago

2k

gomemcacheby bradfitz

Memcache client library for the Go programming language.

github.com/bradfitz/gomemcacheGo 1.18+ No dependencies updated 3mo ago

1.9k

gorethinkby dancannon

Go language driver for RethinkDB.

gopkg.in/rethinkdb/rethinkdb-go.v6Go 1.22+ 7 dependenciesv6.2.2updated 1y ago

1.6k

qmgoby qiniu

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

github.com/qiniu/qmgoGo 1.16+ 3 dependenciesv1.1.10updated 4mo ago

1.4k

mgmby kamva

MongoDB model-based ODM for Go (based on official MongoDB driver).

github.com/kamva/mgm/v3Go 1.22+ 3 dependenciesupdated 3mo ago

764

aerospike-client-goby aerospike

Aerospike client in Go language.

github.com/aerospike/aerospike-client-go/v8Go 1.23+ 6 dependenciesv8.9.0updated today

458

redeoby bsm

Redis-protocol compatible TCP servers/services.

github.com/bsm/redeo/v2Go 1.18+ 3 dependenciesupdated 3y ago

444

neoismby jmcvetta

Neo4j client for Golang.

updated 6y ago

387

gocbby couchbase

Official Couchbase Go SDK.

github.com/couchbase/gocb/v2Go 1.26+ 14 dependenciesupdated 4d ago

375

Kivikby go-kivik

Kivik provides a common Go and GopherJS client library for CouchDB, PouchDB, and similar databases.

github.com/go-kivik/kivik/v4Go 1.20+ 21 dependenciesv4.5.2updated 1mo ago

345

go-rejsonby nitishm

Golang client for redislabs' ReJSON module using Redigo golang client. Store and manipulate structs as JSON objects in redis with ease.

github.com/nitishm/go-rejson/v4Go 1.14+ 2 dependenciesv4.2.0updated 2y ago

339

go-couchbaseby couchbase

Couchbase client in Go.

github.com/couchbase/go-couchbaseGo 1.13+ No dependencies updated 1mo ago

321

go-mongoxby chenmingyong0423

A Go Mongo library based on the official driver, featuring streamlined document operations, generic binding of structs to collections, built-in CRUD, aggregation, automated field updates, struct validation, hooks, and plugin-based programming.

github.com/chenmingyong0423/go-mongox/v2Go 1.25+ 3 dependenciesv2.11.0updated 4d ago

222

godisby piaohao

Redis client implement by golang, inspired by jedis.

github.com/piaohao/godis2 dependenciesupdated 6y ago

112

arangoliteby solher

Lightweight golang driver for ArangoDB.

github.com/solher/arangolite/v2Go 1.16+ No dependencies v2.0.6updated 5y ago

72

go-pilosaby pilosa

Go client library for Pilosa.

archived

58

forestdbby couchbase

Go bindings for ForestDB.

updated 9y ago

36

goriakby zegl

Go language driver for Riak KV.

github.com/zegl/goriak/v31 dependencyv3.2.4updated 5y ago

30

neo4jby cihangir

Neo4j Rest API Bindings for Golang.

updated 11y ago

29

gomemcachedby aliexpressru

A binary Memcached client for Go with support for sharding using consistent hashing, along with SASL.

github.com/aliexpressru/gomemcachedGo 1.24+ 8 dependenciesv1.0.0updated 11mo ago

23

gocosmosby btnguyen2k

REST client and standard database/sql driver for Azure Cosmos DB.

github.com/btnguyen2k/gocosmosGo 1.18+ 7 dependenciesv1.1.0updated 1y ago

22

xredisby shomali11

Typesafe, customizable, clean & easy to use Redis client.

github.com/shomali11/xredis4 dependenciesupdated 7y ago

19

ascby viant

Datastore Connectivity for Aerospike for go.

v0.5.1updated 2y ago

11

godscacheby defcronyke

A wrapper for the Google Cloud Platform Go Datastore package that adds caching using memcached.

updated 7y ago

11

gocql

Go language driver for Apache Cassandra.

gocql.github.io

Esc

Type to search every entry. ↑↓ to move, Enter to open.