18 best Go SQL Database libraries in 2024

share link

by marketing.admin@openweaver.com dot icon Updated: Feb 11, 2023

technology logo
technology logo

Guide Kit 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

Go doticonstar image 34236 doticonVersion:v6.5.3doticon
License: Permissive (Apache-2.0)

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

Support
    Quality
      Security
        License
          Reuse

            tidbby pingcap

            Go doticon star image 34236 doticonVersion:v6.5.3doticon License: Permissive (Apache-2.0)

            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
            Support
              Quality
                Security
                  License
                    Reuse

                      cockroachby cockroachdb

                      Go doticonstar image 27308 doticonVersion:custombuild-v23.1.2-2-ga0b35b5b83adoticon
                      License: Others (Non-SPDX)

                      CockroachDB - the open source, cloud-native distributed SQL database.

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                cockroachby cockroachdb

                                Go doticon star image 27308 doticonVersion:custombuild-v23.1.2-2-ga0b35b5b83adoticon License: Others (Non-SPDX)

                                CockroachDB - the open source, cloud-native distributed SQL database.
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          sqlxby jmoiron

                                          Go doticonstar image 13776 doticonVersion:Currentdoticon
                                          License: Permissive (MIT)

                                          general purpose extensions to golang's database/sql

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    sqlxby jmoiron

                                                    Go doticon star image 13776 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                    general purpose extensions to golang's database/sql
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              mysqlby go-sql-driver

                                                              Go doticonstar image 13368 doticonVersion:v1.7.1doticon
                                                              License: Weak Copyleft (MPL-2.0)

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

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        mysqlby go-sql-driver

                                                                        Go doticon star image 13368 doticonVersion:v1.7.1doticon License: Weak Copyleft (MPL-2.0)

                                                                        Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  immudbby codenotary

                                                                                  Go doticonstar image 8235 doticonVersion:v1.4.1doticon
                                                                                  License: Permissive (Apache-2.0)

                                                                                  immudb - immutable database based on zero trust, SQL and Key-Value, tamperproof, data change history

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            immudbby codenotary

                                                                                            Go doticon star image 8235 doticonVersion:v1.4.1doticon License: Permissive (Apache-2.0)

                                                                                            immudb - immutable database based on zero trust, SQL and Key-Value, tamperproof, data change history
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      pqby lib

                                                                                                      Go doticonstar image 8104 doticonVersion:v1.10.9doticon
                                                                                                      License: Permissive (MIT)

                                                                                                      Pure Go Postgres driver for database/sql

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                pqby lib

                                                                                                                Go doticon star image 8104 doticonVersion:v1.10.9doticon License: Permissive (MIT)

                                                                                                                Pure Go Postgres driver for database/sql
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          usqlby xo

                                                                                                                          Go doticonstar image 8083 doticonVersion:v0.14.8doticon
                                                                                                                          License: Permissive (MIT)

                                                                                                                          Universal command-line interface for SQL databases

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    usqlby xo

                                                                                                                                    Go doticon star image 8083 doticonVersion:v0.14.8doticon License: Permissive (MIT)

                                                                                                                                    Universal command-line interface for SQL databases
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              go-sqlmockby DATA-DOG

                                                                                                                                              Go doticonstar image 5282 doticonVersion:v1.5.0doticon
                                                                                                                                              License: Others (Non-SPDX)

                                                                                                                                              Sql mock driver for golang to test database interactions

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        go-sqlmockby DATA-DOG

                                                                                                                                                        Go doticon star image 5282 doticonVersion:v1.5.0doticon License: Others (Non-SPDX)

                                                                                                                                                        Sql mock driver for golang to test database interactions
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  xoby xo

                                                                                                                                                                  Go doticonstar image 3350 doticonVersion:Currentdoticon
                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                  Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            xoby xo

                                                                                                                                                                            Go doticon star image 3350 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                            Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      octosqlby cube2222

                                                                                                                                                                                      Go doticonstar image 4509 doticonVersion:v0.12.2doticon
                                                                                                                                                                                      License: Weak Copyleft (MPL-2.0)

                                                                                                                                                                                      OctoSQL is a query tool that allows you to join, analyse and transform data from multiple databases and file formats using SQL.

                                                                                                                                                                                      Support
                                                                                                                                                                                        Quality
                                                                                                                                                                                          Security
                                                                                                                                                                                            License
                                                                                                                                                                                              Reuse

                                                                                                                                                                                                octosqlby cube2222

                                                                                                                                                                                                Go doticon star image 4509 doticonVersion:v0.12.2doticon License: Weak Copyleft (MPL-2.0)

                                                                                                                                                                                                OctoSQL is a query tool that allows you to join, analyse and transform data from multiple databases and file formats using SQL.
                                                                                                                                                                                                Support
                                                                                                                                                                                                  Quality
                                                                                                                                                                                                    Security
                                                                                                                                                                                                      License
                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                          gooseby pressly

                                                                                                                                                                                                          Go doticonstar image 4005 doticonVersion:v3.11.2doticon
                                                                                                                                                                                                          License: Others (Non-SPDX)

                                                                                                                                                                                                          A database migration tool. Supports SQL migrations and Go functions.

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    gooseby pressly

                                                                                                                                                                                                                    Go doticon star image 4005 doticonVersion:v3.11.2doticon License: Others (Non-SPDX)

                                                                                                                                                                                                                    A database migration tool. Supports SQL migrations and Go functions.
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                              dbrby gocraft

                                                                                                                                                                                                                              Go doticonstar image 1747 doticonVersion:v2.7.3doticon
                                                                                                                                                                                                                              License: Permissive (MIT)

                                                                                                                                                                                                                              Additions to Go's database/sql for super fast performance and convenience.

                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                        dbrby gocraft

                                                                                                                                                                                                                                        Go doticon star image 1747 doticonVersion:v2.7.3doticon License: Permissive (MIT)

                                                                                                                                                                                                                                        Additions to Go's database/sql for super fast performance and convenience.
                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                  CovenantSQLby CovenantSQL

                                                                                                                                                                                                                                                  Go doticonstar image 1407 doticonVersion:v0.8.1doticon
                                                                                                                                                                                                                                                  License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                  A decentralized, trusted, high performance, SQL database with blockchain features

                                                                                                                                                                                                                                                  Support
                                                                                                                                                                                                                                                    Quality
                                                                                                                                                                                                                                                      Security
                                                                                                                                                                                                                                                        License
                                                                                                                                                                                                                                                          Reuse

                                                                                                                                                                                                                                                            CovenantSQLby CovenantSQL

                                                                                                                                                                                                                                                            Go doticon star image 1407 doticonVersion:v0.8.1doticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                            A decentralized, trusted, high performance, SQL database with blockchain features
                                                                                                                                                                                                                                                            Support
                                                                                                                                                                                                                                                              Quality
                                                                                                                                                                                                                                                                Security
                                                                                                                                                                                                                                                                  License
                                                                                                                                                                                                                                                                    Reuse

                                                                                                                                                                                                                                                                      acraby cossacklabs

                                                                                                                                                                                                                                                                      Go doticonstar image 1169 doticonVersion:0.95.0doticon
                                                                                                                                                                                                                                                                      License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                                      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.

                                                                                                                                                                                                                                                                      Support
                                                                                                                                                                                                                                                                        Quality
                                                                                                                                                                                                                                                                          Security
                                                                                                                                                                                                                                                                            License
                                                                                                                                                                                                                                                                              Reuse

                                                                                                                                                                                                                                                                                acraby cossacklabs

                                                                                                                                                                                                                                                                                Go doticon star image 1169 doticonVersion:0.95.0doticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                                                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.
                                                                                                                                                                                                                                                                                Support
                                                                                                                                                                                                                                                                                  Quality
                                                                                                                                                                                                                                                                                    Security
                                                                                                                                                                                                                                                                                      License
                                                                                                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                                                                                                          genjiby genjidb

                                                                                                                                                                                                                                                                                          Go doticonstar image 1221 doticonVersion:v0.15.1doticon
                                                                                                                                                                                                                                                                                          License: Permissive (MIT)

                                                                                                                                                                                                                                                                                          Document-oriented, embedded SQL database

                                                                                                                                                                                                                                                                                          Support
                                                                                                                                                                                                                                                                                            Quality
                                                                                                                                                                                                                                                                                              Security
                                                                                                                                                                                                                                                                                                License
                                                                                                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                                                                                                    genjiby genjidb

                                                                                                                                                                                                                                                                                                    Go doticon star image 1221 doticonVersion:v0.15.1doticon License: Permissive (MIT)

                                                                                                                                                                                                                                                                                                    Document-oriented, embedded SQL database
                                                                                                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                                                                                                          License
                                                                                                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                                                                                                              copyistby cockroachdb

                                                                                                                                                                                                                                                                                                              Go doticonstar image 826 doticonVersion:v1.6.0doticon
                                                                                                                                                                                                                                                                                                              License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                                                                              Mocking your SQL database in Go tests has never been easier.

                                                                                                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                                                                                                        copyistby cockroachdb

                                                                                                                                                                                                                                                                                                                        Go doticon star image 826 doticonVersion:v1.6.0doticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                                                                                        Mocking your SQL database in Go tests has never been easier.
                                                                                                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                                                                                                  tinysqlby tidb-incubator

                                                                                                                                                                                                                                                                                                                                  Go doticonstar image 590 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                                                                                                  License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                                                                                                  A course to build the SQL layer of a distributed database.

                                                                                                                                                                                                                                                                                                                                  Support
                                                                                                                                                                                                                                                                                                                                    Quality
                                                                                                                                                                                                                                                                                                                                      Security
                                                                                                                                                                                                                                                                                                                                        License
                                                                                                                                                                                                                                                                                                                                          Reuse

                                                                                                                                                                                                                                                                                                                                            tinysqlby tidb-incubator

                                                                                                                                                                                                                                                                                                                                            Go doticon star image 590 doticonVersion:Currentdoticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                                                                                                            A course to build the SQL layer of a distributed database.
                                                                                                                                                                                                                                                                                                                                            Support
                                                                                                                                                                                                                                                                                                                                              Quality
                                                                                                                                                                                                                                                                                                                                                Security
                                                                                                                                                                                                                                                                                                                                                  License
                                                                                                                                                                                                                                                                                                                                                    Reuse

                                                                                                                                                                                                                                                                                                                                                      go-oci8by mattn

                                                                                                                                                                                                                                                                                                                                                      Go doticonstar image 547 doticonVersion:v0.1.1doticon
                                                                                                                                                                                                                                                                                                                                                      License: Permissive (MIT)

                                                                                                                                                                                                                                                                                                                                                      Oracle driver for Go using database/sql

                                                                                                                                                                                                                                                                                                                                                      Support
                                                                                                                                                                                                                                                                                                                                                        Quality
                                                                                                                                                                                                                                                                                                                                                          Security
                                                                                                                                                                                                                                                                                                                                                            License
                                                                                                                                                                                                                                                                                                                                                              Reuse

                                                                                                                                                                                                                                                                                                                                                                go-oci8by mattn

                                                                                                                                                                                                                                                                                                                                                                Go doticon star image 547 doticonVersion:v0.1.1doticon License: Permissive (MIT)

                                                                                                                                                                                                                                                                                                                                                                Oracle driver for Go using database/sql
                                                                                                                                                                                                                                                                                                                                                                Support
                                                                                                                                                                                                                                                                                                                                                                  Quality
                                                                                                                                                                                                                                                                                                                                                                    Security
                                                                                                                                                                                                                                                                                                                                                                      License
                                                                                                                                                                                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                                                                                                                                                                                          See similar Kits and Libraries