Go Relational Databases

Open-source Go projects categorized as Relational Databases

Top 13 Go Relational Database Projects

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

  • go-sql-driver/mysql

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

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • pgx

    PostgreSQL driver and toolkit for Go

    Project mention: The DDD Hamburger for Go | dev.to | 2024-01-06

    The infrastructure layer contains the concrete implementation of the repository domain interface ActivityRepository in the struct DbActivityRepository. This repository implementation uses the Postgres driver pgx and plain SQL to store the activity in the database. It uses the database transaction from the context, since the transaction was initiated by the application service.

  • 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!

  • go-mssqldb

    Microsoft SQL server driver written in go language

  • go-oci8

    Oracle driver for Go using database/sql

  • Sqinn-Go

    Golang SQLite without cgo

    Project mention: Show HN: My Go SQLite driver did poorly on a benchmark, so I fixed it | news.ycombinator.com | 2023-12-14

    Note that Squinn is not "native go" or "go only", but the owner insists on misleading people:


  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • firebirdsql

    Firebird RDBMS sql driver for Go (golang)

  • go-adodb

    Microsoft ActiveX Object DataBase driver for go that using exp/sql

  • gofreetds

    Go Sql Server database driver.

  • vertica-sql-go

    Official native Go client for the Vertica Analytics Database.

  • bgc

    Datastore Connectivity for BigQuery in go (by viant)

  • pig

    Simple pgx wrapper to execute and scan query results

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 2024-01-06.

Go Relational Databases related posts


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

Project Stars
1 sqlx 15,304
2 go-sql-driver/mysql 14,151
3 pgx 9,330
4 pq 8,715
5 go-mssqldb 1,792
6 go-oci8 626
7 Sqinn-Go 396
8 firebirdsql 216
9 go-adodb 135
10 gofreetds 110
11 vertica-sql-go 60
12 bgc 21
13 pig 15
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives