Go Database Drivers

Open-source Go projects categorized as Database Drivers

Top 23 Go Database Driver Projects

  • Redis

    Redis Go client

    Project mention: Using IAM authentication for Redis on AWS | dev.to | 2023-12-07

    MemoryDB documentation has an example for a Java application with the Lettuce client. The process is similar for other languages, but you still need to implement it. So, let's learn how to do it for a Go application with the widely used go-redis client.

  • sqlx

    general purpose extensions to golang's database/sql

    Project mention: Python: Just Write SQL | news.ycombinator.com | 2023-08-14

    We've always used https://github.com/jmoiron/sqlx which is just the standard package + mapping to/from structs.

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • cayley

    An open-source graph database

  • go-sql-driver/mysql

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

    Project mention: Tools besides Go for a newbie | /r/golang | 2023-03-26

    IDE: use whatever make you productive. I personally use vscode. VCS: git, as golang communities use github heavily as base for many libraries. AFAIK Linter: use staticcheck for linting as it looks like mostly used linting tool in go, supported by many also. In Vscode it will be recommended once you install go plugin. Libraries/Framework: actually the standard libraries already included many things you need, decent enough for your day-to-day development cycles(e.g. `net/http`). But here are things for extra: - Struct fields validator: validator - Http server lib: chi router , httprouter , fasthttp (for non standard http implementations, but fast) - Web Framework: echo , gin , fiber , beego , etc - Http client lib: most already covered by stdlib(net/http), so you rarely need extra lib for this, but if you really need some are: resty - CLI: cobra - Config: godotenv , viper - DB Drivers: sqlx , postgre , sqlite , mysql - nosql: redis , mongodb , elasticsearch - ORM: gorm , entgo , sqlc(codegen) - JS Transpiler: gopherjs - GUI: fyne - grpc: grpc - logging: zerolog - test: testify , gomock , dockertest - and many others you can find here

  • redigo

    Go client for Redis

    Project mention: Redis with golang | /r/redis | 2023-03-26
  • bleve

    A modern text indexing library for go

    Project mention: Hermes v1.7 | /r/golang | 2023-06-04

    I don't have the answer to that, but the project has been alive for many years. Seems maybe you should find the answer since you are developing a competing solution? Also it might be a good reference project for solving similar problems to yours. They do have bench tests you could play with https://github.com/blevesearch/bleve/blob/master/query_bench_test.go

  • pgx

    PostgreSQL driver and toolkit for Go

    Project mention: Building RESTful API with Hexagonal Architecture in Go | dev.to | 2023-09-27

    For building the RESTful Point of Sale service API, I've considered and selected a combination of technologies that would work seamlessly together. For handling HTTP requests and responses, using the Gin HTTP web framework would make sense because I think it seems complete and popular among Go community too. To ensure data integrity and persistence, I'm using PostgreSQL database with pgx as the database driver, the reason I choose PostgreSQL because it is the most popular relational database to use in production and offers efficient Go integration. I'm also implementing caching using Redis with go-redis client library, which provides powerful in-memory data storage capabilities.

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.

  • pq

    Pure Go Postgres driver for database/sql

    Project mention: Authentication system using Golang and Sveltekit - Initialization and setup | dev.to | 2023-06-02

    Following the completion of the series — Secure and performant full-stack authentication system using rust (actix-web) and sveltekit and Secure and performant full-stack authentication system using Python (Django) and SvelteKit — I felt I should keep the streak by building an equivalent system in PURE go with very minimal external dependencies. We won't use any fancy web framework apart from httprouter and other basic dependencies including a database driver (pq), and redis client. As usual, we'll be using SvelteKit at the front end, favouring JSDoc instead of TypeScript. The combination is ecstatic!

  • mongo-go-driver

    The Official Golang driver for MongoDB

    Project mention: Integrating MONGODB in GOLANG applications | dev.to | 2023-08-23

    Learning how to integrate no-sql databases with applications is becoming a must-know skill for all developers out there. Golang in particular provides the MongoDB Go Driver for easier and efficient connection with the mongo database.

  • elastic

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

    Project mention: How to include max_children in the Elasticsearch query | /r/golang | 2023-07-01

    i am trying to generate the following query using github.com/olivere/elastic/v7

  • go-elasticsearch

    The official Go client for Elasticsearch

    Project mention: How to include max_children in the Elasticsearch query | /r/golang | 2023-07-01

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

  • clickhouse-go

    Golang driver for ClickHouse

  • gocql

    Package gocql implements a fast and robust Cassandra client for the Go programming language.

  • go-mssqldb

    Microsoft SQL server driver written in go language

    Project mention: Does sqlc/sqlx support MS-SQLServer? All examples for sqlc with postgres and mysql | /r/golang | 2023-02-23
  • gomemcache

    Go Memcached client library #golang

  • gorethink

    Go language driver for RethinkDB

  • qmgo

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

  • elasticsql

    convert sql to elasticsearch DSL in golang(go)

  • elastigo

    A Go (golang) based Elasticsearch client library.

  • mgm

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

  • go-oci8

    Oracle driver for Go using database/sql

  • redeo

    High-performance framework for building redis-protocol compatible TCP servers/services

  • aerospike-client-go

    Aerospike Client Go

  • SaaSHub

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

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). The latest post mention was on 2023-12-07.

Go Database Drivers related posts


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

Project Stars
1 Redis 18,428
2 sqlx 14,686
3 cayley 14,679
4 go-sql-driver/mysql 13,867
5 redigo 9,644
6 bleve 9,362
7 pgx 8,628
8 pq 8,457
9 mongo-go-driver 7,729
10 elastic 7,251
11 go-elasticsearch 5,272
12 clickhouse-go 2,612
13 gocql 2,476
14 go-mssqldb 1,773
15 gomemcache 1,651
16 gorethink 1,643
17 qmgo 1,222
18 elasticsql 1,117
19 elastigo 950
20 mgm 703
21 go-oci8 611
22 redeo 429
23 aerospike-client-go 414
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives