Awesome Go

Database Drivers

66 libraries in this category

redis

Redis client for Golang

22,262Database DriversNoSQL Database Drivers
go-sql-driver/mysql

MySQL driver for Go

15,274Database DriversRelational Database Drivers
cayley

Graph database with support for multiple backends

15,064Database DriversInterfaces to Multiple Backends
pgx

PostgreSQL driver supporting features beyond those exposed by database/sql

14,327Database DriversRelational Database Drivers
pq

Pure Go Postgres driver for database/sql

9,963Database DriversRelational Database Drivers
redigo

Redigo is a Go client for the Redis database

9,848Database DriversNoSQL Database Drivers
go-sqlite3

SQLite3 driver for go that uses database/sql

9,252Database DriversRelational Database Drivers
mongo-go-driver

Official MongoDB driver for the Go language

8,533Database DriversNoSQL Database Drivers
elastic

Elasticsearch client for Go

7,438Database DriversSearch and Analytic Databases
go-elasticsearch

Official Elasticsearch client for Go

6,068Database DriversSearch and Analytic Databases
clickhouse-go

ClickHouse SQL client for Go with a `database/sql` compatibility

3,352Database DriversSearch and Analytic Databases
rueidis

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

2,987Database DriversNoSQL Database Drivers
zoekt

Fast trigram based code search

1,964Database DriversSearch and Analytic Databases
mgo

(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

1,961Database DriversNoSQL Database Drivers
gomemcache

memcache client library for the Go programming language

1,886Database DriversNoSQL Database Drivers
go-mssqldb

Microsoft MSSQL driver for Go

1,881Database DriversRelational Database Drivers
gorethink

Go language driver for RethinkDB

1,646Database DriversNoSQL Database Drivers
qmgo

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

1,355Database DriversNoSQL Database Drivers
elasticsql

Convert sql to elasticsearch dsl in Go

1,189Database DriversSearch and Analytic Databases
go-sqlite3

This Go module is compatible with the database/sql driver. It allows embedding SQLite into your application, provides direct access to its C API, supports SQLite VFS, and also includes a GORM driver

1,123Database DriversRelational Database Drivers
elastigo

Elasticsearch client library

940Database DriversSearch and Analytic Databases
gokv

Simple key-value store abstraction and implementations for Go (Redis, Consul, etcd, bbolt, BadgerDB, LevelDB, Memcached, DynamoDB, S3, PostgreSQL, MongoDB, CockroachDB and many more)

828Database DriversInterfaces to Multiple Backends
skizze

A probabilistic data structure service and storage

773Database DriversSearch and Analytic Databases
mgm

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

763Database DriversNoSQL Database Drivers
sqlhooks

Attach hooks to any database/sql driver

664Database DriversRelational Database Drivers
go-oci8

Oracle driver for go that uses database/sql

633Database DriversRelational Database Drivers
godror

Oracle driver for Go, using the ODPI-C driver

599Database DriversRelational Database Drivers
Sqinn-Go

SQLite with pure Go

543Database DriversRelational Database Drivers
aerospike-client-go

Aerospike client in Go language

458Database DriversNoSQL Database Drivers
redeo

Redis-protocol compatible TCP servers/services

444Database DriversNoSQL Database Drivers
go-transaction-manager

Transaction manager with multiple adapters (sql, sqlx, gorm, mongo, ...) controls transaction boundaries

419Database DriversInterfaces to Multiple Backends
go-mssqldb

Microsoft's official Go driver for SQL Server, Azure SQL, Azure Synapse, SQL database in Fabric, and Fabric Data Warehouse. Supports Azure AD, Always Encrypted, bulk operations

412Database DriversRelational Database Drivers
neoism

Neo4j client for Golang

387Database DriversNoSQL Database Drivers
gocb

Official Couchbase Go SDK

375Database DriversNoSQL Database Drivers
KSQL

A Simple and Powerful Golang SQL Library

361Database DriversRelational Database Drivers
Kivik

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

345Database DriversNoSQL Database Drivers
go-rejson

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

339Database DriversNoSQL Database Drivers
go-couchbase

Couchbase client in Go

323Database DriversNoSQL Database Drivers
surrealdb.go

SurrealDB Driver for Go

318Database DriversRelational Database Drivers
firebirdsql

Firebird RDBMS SQL driver for Go

270Database DriversRelational Database Drivers
go-mongox

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

222Database DriversNoSQL Database Drivers
go-rqlite

A Go client for rqlite, providing easy-to-use abstractions for working with the rqlite API

186Database DriversRelational Database Drivers
ydb-go-sdk

native and database/sql driver YDB (Yandex Database)

181Database DriversRelational Database Drivers
go-adodb

Microsoft ActiveX Object DataBase driver for go that uses database/sql

154Database DriversRelational Database Drivers
avatica

Apache Avatica/Phoenix SQL driver for database/sql

126Database DriversRelational Database Drivers
gofreetds

Microsoft MSSQL driver. Go wrapper over [FreeTDS](https://www.freetds.org)

114Database DriversRelational Database Drivers
godis

redis client implement by golang, inspired by jedis

112Database DriversNoSQL Database Drivers
Neo4j-GO

Neo4j REST Client in golang.

78Database DriversLibraries for building and using SQL.
arangolite

Lightweight golang driver for ArangoDB

72Database DriversNoSQL Database Drivers
go-pilosa

Go client library for Pilosa

58Database DriversNoSQL Database Drivers
dsc

Datastore connectivity for SQL, NoSQL, structured files

37Database DriversInterfaces to Multiple Backends
forestdb

Go bindings for ForestDB

36Database DriversNoSQL Database Drivers
effdsl

Elasticsearch query builder for Go

35Database DriversSearch and Analytic Databases
goriak

Go language driver for Riak KV

30Database DriversNoSQL Database Drivers
goes

Library to interact with Elasticsearch

30Database DriversSearch and Analytic Databases
neo4j

Neo4j Rest API Bindings for Golang

29Database DriversNoSQL Database Drivers
dynamo

A simple key-value abstraction to store algebraic and linked-data data types at AWS storage services: AWS DynamoDB and AWS S3

24Database DriversInterfaces to Multiple Backends
gomemcached

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

23Database DriversNoSQL Database Drivers
gocosmos

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

22Database DriversNoSQL Database Drivers
bgc

Datastore Connectivity for BigQuery for go

21Database DriversRelational Database Drivers
xredis

Typesafe, customizable, clean & easy to use Redis client

19Database DriversNoSQL Database Drivers
pig

Simple [pgx](https://github.com/jackc/pgx) wrapper to execute and [scan](https://github.com/georgysavva/scany) query results easily

17Database DriversRelational Database Drivers
asc

Datastore Connectivity for Aerospike for go

11Database DriversNoSQL Database Drivers
godscache

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

11Database DriversNoSQL Database Drivers
transactor

Type-safe transaction boundary abstraction with adapters for database/sql, sqlx, and pgx

6Database DriversInterfaces to Multiple Backends
skizze

probabilistic data-structures service and storage

Database DriversSearch and Analytic Databases