13 best Go Database libraries in 2024

share link

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

technology logo
technology logo

Guide Kit Guide Kit  

Go Database libraries offer a generic SQL database interface. It supports databases like MySQL, SQLite, PostgreSQL, and many more. This library offers an effortless way to connect various databases and manage those connections. It supports the execution of SQL queries and prepared statements, allowing easy and secure access to databases.  


Go Database libraries offer a simple and intuitive way to manage database transactions, allowing the execution of different SQL statements as a single unit of work. This library offers detailed error handling, providing developers with more information on what went wrong in case of any error. This library supports prepared statements, which will help prevent SQL injection attacks and make it a secure way to interact with databases. It is a generic SQL database interface and supports multiple database drivers making it a flexible and versatile choice for building database-driven applications.  


Here is the list of the 13 best Go Database libraries that are handpicked to help developers: 

prometheus: 

  • Is designed for collecting metrics from various sources, storing, and querying them to provide insights into a system's health and performance.  
  • Offers a set of tools to build applications that exposes metrics in a format that prometheus can understand.  
  • Supports several metrics like gauges, summaries, counters, and histograms.  

prometheusby prometheus

Go doticonstar image 48618 doticonVersion:v2.45.0-rc.0doticon
License: Permissive (Apache-2.0)

The Prometheus monitoring system and time series database.

Support
    Quality
      Security
        License
          Reuse

            prometheusby prometheus

            Go doticon star image 48618 doticonVersion:v2.45.0-rc.0doticon License: Permissive (Apache-2.0)

            The Prometheus monitoring system and time series database.
            Support
              Quality
                Security
                  License
                    Reuse

                      tidb: 

                      • Is an open source, MySQL-compatible, distributed RDBMS built for scalability and performance. 
                      • Offers a way for executing SQL queries against TiDB databases. 
                      • Offers a way to create, modify, and delete database schemas, indexes, and tables.  

                      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

                                          cockroach: 

                                          • Is an open source, distributed SQL DBMS designed to provide reliable, scalable, and universally available transactional data storage.  
                                          • Offers a way for executing SQL queries against CockroachDB databases.  
                                          • Offers a simple and intuitive way to manage transactions in CockroachDB databases, allowing you to execute multiple SQL statements as a single unit of work. 

                                          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

                                                              influxdb: 

                                                              • Offers an easy-to-use interface to perform common database operations like creating and deleting databases, reading, and writing data, and managing users.  
                                                              • Is available in various programming languages like Java, JavaScript, Go, and Python.  
                                                              • Every library implementation offers a set of classes and functions which can be used for interacting with InfluxDB. 

                                                              influxdbby influxdata

                                                              Go doticonstar image 25602 doticonVersion:v2.7.1doticon
                                                              License: Permissive (MIT)

                                                              Scalable datastore for metrics, events, and real-time analytics

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        influxdbby influxdata

                                                                        Go doticon star image 25602 doticonVersion:v2.7.1doticon License: Permissive (MIT)

                                                                        Scalable datastore for metrics, events, and real-time analytics
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  dgraph: 

                                                                                  • Is a distributed graph database that supports a flexible query and schema and is optimized for handling large-scale graph data.  
                                                                                  • Offers an easy-to-use interface to perform common database operations like creating and deleting edges and nodes, reading, and writing data, and managing indexes. 
                                                                                  • Includes writing data to the database, querying data from the database, and managing schema and indexes. 

                                                                                  dgraphby dgraph-io

                                                                                  Go doticonstar image 19342 doticonVersion:v23.0.0doticon
                                                                                  License: Others (Non-SPDX)

                                                                                  Native GraphQL Database with graph backend

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            dgraphby dgraph-io

                                                                                            Go doticon star image 19342 doticonVersion:v23.0.0doticon License: Others (Non-SPDX)

                                                                                            Native GraphQL Database with graph backend
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      milvus: 

                                                                                                      • Is an open source vector database designed for storing and searching large-scale vector data like videos, images, and audio.  
                                                                                                      • Supports similarity search, allowing users to search for similar vectors in a dataset.  
                                                                                                      • Is a software library that will allow developers to interact with Milvus from within their programs.  

                                                                                                      milvusby milvus-io

                                                                                                      Go doticonstar image 19923 doticonVersion:v2.2.10doticon
                                                                                                      License: Permissive (Apache-2.0)

                                                                                                      A cloud-native vector database, storage for next generation AI applications

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                milvusby milvus-io

                                                                                                                Go doticon star image 19923 doticonVersion:v2.2.10doticon License: Permissive (Apache-2.0)

                                                                                                                A cloud-native vector database, storage for next generation AI applications
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          sqlx: 

                                                                                                                          • Is an open source library that offers an enhanced interface for working with SQL databases in Rust.  
                                                                                                                          • Offers a simple and ergonomic API for interacting with databases, making it easier to write robust and efficient database code and reducing boilerplate code.  
                                                                                                                          • Supports Rust’s async/await syntax, allowing non-blocking I/O operations and efficient use of system resources. 

                                                                                                                          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

                                                                                                                                              teleport: 

                                                                                                                                              • Is an open source library that offers secure access to computing resources like containers, Kubernetes clusters, and servers.  
                                                                                                                                              • Offers a unified access layer that can be used for authorized and authenticated users, managing access to resources, and auditing user activity. 
                                                                                                                                              • Can be integrated into existing applications and supports different authentication like MFA and SSO.  

                                                                                                                                              teleportby gravitational

                                                                                                                                              Go doticonstar image 14571 doticonVersion:v13.1.1doticon
                                                                                                                                              License: Permissive (Apache-2.0)

                                                                                                                                              The easiest, most secure way to access infrastructure.

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        teleportby gravitational

                                                                                                                                                        Go doticon star image 14571 doticonVersion:v13.1.1doticon License: Permissive (Apache-2.0)

                                                                                                                                                        The easiest, most secure way to access infrastructure.
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  rqlite: 

                                                                                                                                                                  • Is an open source distributed SQL database designed for use in high-throughput and low-latency environments.  
                                                                                                                                                                  • Offers consistent performance, fault tolerance, and scalability by distributing SQL queries and data across different nodes in a cluster.  
                                                                                                                                                                  • Can make it easier for developers to build applications that use rqlite as their data store.  

                                                                                                                                                                  rqliteby rqlite

                                                                                                                                                                  Go doticonstar image 13771 doticonVersion:v7.20.5doticon
                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                  The lightweight, distributed relational database built on SQLite

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            rqliteby rqlite

                                                                                                                                                                            Go doticon star image 13771 doticonVersion:v7.20.5doticon License: Permissive (MIT)

                                                                                                                                                                            The lightweight, distributed relational database built on SQLite
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      immudb: 

                                                                                                                                                                                      • Is a key-value database, open source transactional with built-in cryptographic verification.  
                                                                                                                                                                                      • Offers tamper-evident storage, is immutable, and supports ACID transactions.  
                                                                                                                                                                                      • Includes executing transactions that modify the database, configuring the cryptographic verification settings, and monitoring database health and performance.  

                                                                                                                                                                                      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

                                                                                                                                                                                                          db: 

                                                                                                                                                                                                          • Is a productive data access layer for the Go programming language, which offers agnostic tools to work with various data sources.  
                                                                                                                                                                                                          • Provides tools for common operations with databases and stays out of the way with advanced cases.  
                                                                                                                                                                                                          • Offers a common interface for developers to work with different NoSQL and SQL database engines.  

                                                                                                                                                                                                          dbby upper

                                                                                                                                                                                                          Go doticonstar image 3326 doticonVersion:v4.6.0doticon
                                                                                                                                                                                                          License: Permissive (MIT)

                                                                                                                                                                                                          Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    dbby upper

                                                                                                                                                                                                                    Go doticon star image 3326 doticonVersion:v4.6.0doticon License: Permissive (MIT)

                                                                                                                                                                                                                    Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                              cayley: 

                                                                                                                                                                                                                              • Allows developers to store and query graph data using various query languages like SPARQL, Gremlin, and GraphQL.  
                                                                                                                                                                                                                              • Is a software library that will allow developers to interact with Cayley from within their programs.  
                                                                                                                                                                                                                              • Can make it easier for developers to build applications that use Cayley as their data store.  

                                                                                                                                                                                                                              cayleyby cayleygraph

                                                                                                                                                                                                                              Go doticonstar image 14574 doticonVersion:v0.7.7doticon
                                                                                                                                                                                                                              License: Permissive (Apache-2.0)

                                                                                                                                                                                                                              An open-source graph database

                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                        cayleyby cayleygraph

                                                                                                                                                                                                                                        Go doticon star image 14574 doticonVersion:v0.7.7doticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                        An open-source graph database
                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                  vitess: 

                                                                                                                                                                                                                                                  • Offers horizontal resharding, scaling, and failover capabilities for MySQL databases. 
                                                                                                                                                                                                                                                  • Is a software library that will allow developers to interact with Vitess from within their programming.  
                                                                                                                                                                                                                                                  • Developers can focus on building their application's logic and let the library handle the low-level details of communicating with the Vitess database cluster.  

                                                                                                                                                                                                                                                  vitessby vitessio

                                                                                                                                                                                                                                                  Go doticonstar image 16325 doticonVersion:v17.0.0-rc2doticon
                                                                                                                                                                                                                                                  License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                  Vitess is a database clustering system for horizontal scaling of MySQL.

                                                                                                                                                                                                                                                  Support
                                                                                                                                                                                                                                                    Quality
                                                                                                                                                                                                                                                      Security
                                                                                                                                                                                                                                                        License
                                                                                                                                                                                                                                                          Reuse

                                                                                                                                                                                                                                                            vitessby vitessio

                                                                                                                                                                                                                                                            Go doticon star image 16325 doticonVersion:v17.0.0-rc2doticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                            Vitess is a database clustering system for horizontal scaling of MySQL.
                                                                                                                                                                                                                                                            Support
                                                                                                                                                                                                                                                              Quality
                                                                                                                                                                                                                                                                Security
                                                                                                                                                                                                                                                                  License
                                                                                                                                                                                                                                                                    Reuse

                                                                                                                                                                                                                                                                      See similar Kits and Libraries