18 best Go SQL Database libraries in 2025
by marketing.admin@openweaver.com Updated: Feb 11, 2023
Guide Kit
Go programming language has been around for a number of years and has gained popularity in recent years. It is an open source, general-purpose programming language that makes it easy to build simple, reliable, and efficient software. Go SQL Database is a database driver for Go. It supports the popular databases MySQL, MariaDB, PostgreSQL, SQLite and MSSQL. Go is a compiled language which means that it produces machine code on the fly. Go's core features include: Concurrency without data races, Rich standard library, Fast compilation, clean syntax, and fast execution. The Go language is simple, but powerful enough to run a huge amount of existing production code and create new applications that are lightweight, flexible and scalable. Some of the most popular Go SQL Database Open Source libraries among developers are: tidb - open source distributed HTAP database compatible; cockroach - open source, cloudnative distributed SQL database; sqlx - general purpose extensions to golang's database/sql.
tidbby pingcap
TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://tidbcloud.com/free-trial
tidbby pingcap
Go
34236
Version:v6.5.3
License: Permissive (Apache-2.0)
cockroachby cockroachdb
CockroachDB - the open source, cloud-native distributed SQL database.
cockroachby cockroachdb
Go
27308
Version:custombuild-v23.1.2-2-ga0b35b5b83a
License: Others (Non-SPDX)
mysqlby go-sql-driver
Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package
mysqlby go-sql-driver
Go
13368
Version:v1.7.1
License: Weak Copyleft (MPL-2.0)
immudbby codenotary
immudb - immutable database based on zero trust, SQL and Key-Value, tamperproof, data change history
immudbby codenotary
Go
8235
Version:v1.4.1
License: Permissive (Apache-2.0)
go-sqlmockby DATA-DOG
Sql mock driver for golang to test database interactions
go-sqlmockby DATA-DOG
Go
5282
Version:v1.5.0
License: Others (Non-SPDX)
xoby xo
Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server
xoby xo
Go
3350
Version:Current
License: Permissive (MIT)
octosqlby cube2222
OctoSQL is a query tool that allows you to join, analyse and transform data from multiple databases and file formats using SQL.
octosqlby cube2222
Go
4509
Version:v0.12.2
License: Weak Copyleft (MPL-2.0)
gooseby pressly
A database migration tool. Supports SQL migrations and Go functions.
gooseby pressly
Go
4005
Version:v3.11.2
License: Others (Non-SPDX)
dbrby gocraft
Additions to Go's database/sql for super fast performance and convenience.
dbrby gocraft
Go
1747
Version:v2.7.3
License: Permissive (MIT)
CovenantSQLby CovenantSQL
A decentralized, trusted, high performance, SQL database with blockchain features
CovenantSQLby CovenantSQL
Go
1407
Version:v0.8.1
License: Permissive (Apache-2.0)
acraby cossacklabs
Database security suite. Database proxy with field-level encryption, search through encrypted data, SQL injections prevention, intrusion detection, honeypots. Supports client-side and proxy-side ("transparent") encryption. SQL, NoSQL.
acraby cossacklabs
Go
1169
Version:0.95.0
License: Permissive (Apache-2.0)
copyistby cockroachdb
Mocking your SQL database in Go tests has never been easier.
copyistby cockroachdb
Go
826
Version:v1.6.0
License: Permissive (Apache-2.0)
tinysqlby tidb-incubator
A course to build the SQL layer of a distributed database.
tinysqlby tidb-incubator
Go
590
Version:Current
License: Permissive (Apache-2.0)