Cute Gopher Mascot

The Best Go Libraries For Database (133)

Discover the best Go libraries for Database! Find the perfect tools to streamline your development and boost productivity. From gdcache to sqrl, we've got you covered. Let the coding begin!

gdcache

A pure non-intrusive cache library implemented by golang, you can use it to implement your own distributed cache.

See More! 🚀

sqrl

SQL query builder, fork of Squirrel with improved performance.

See More! 🚀

Squirrel

Go library that helps you build SQL queries.

See More! 🚀

go-cache

A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern.

See More! 🚀

Vasto

A distributed high-performance key-value store. On Disk. Eventual consistent. HA. Able to grow or shrink without service interruption.

See More! 🚀

xo

Generate idiomatic Go code for databases based on existing schema definitions or custom queries supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server.

See More! 🚀

bcache

Eventually consistent distributed in-memory cache Go library.

See More! 🚀

BigCache

Efficient key/value cache for gigabytes of data.

See More! 🚀

VictoriaMetrics

fast, resource-effective and scalable open source time series database. May be used as long-term remote storage for Prometheus. Supports PromQL.

See More! 🚀

2q

2Q in-memory cache implementation.

See More! 🚀

cache

In-memory key:value store with expiration time, 0 dependencies, <100 LoC, 100% coverage.

See More! 🚀

cache2go

In-memory key:value cache which supports automatic invalidation based on timeouts.

See More! 🚀

cachego

Golang Cache component for multiple drivers.

See More! 🚀

clusteredBigCache

BigCache with clustering support and individual item expiration.

See More! 🚀

coherence-go-client

Full implementation of Oracle Coherence cache API for Go applications using gRPC as network transport.

See More! 🚀

couchcache

RESTful caching micro-service backed by Couchbase server.

See More! 🚀

EchoVault

Embeddable Distributed in-memory data store compatible with Redis clients.

See More! 🚀

fastcache

fast thread-safe inmemory cache for big number of entries. Minimizes GC overhead.

See More! 🚀

GCache

Cache library with support for expirable Cache, LFU, LRU and ARC.

See More! 🚀

go-mcache

Fast in-memory key:value store/cache library. Pointer caches.

See More! 🚀

gocache

A complete Go cache library with multiple stores (memory, memcache, redis, ...), chainable, loadable, metrics cache and more.

See More! 🚀

gocache

A data race free Go ache library with high performance and auto pruge functionality

See More! 🚀

groupcache

Groupcache is a caching and cache-filling library, intended as a replacement for memcached in many cases.

See More! 🚀

icache

A High Performance, Generic, thread-safe, zero-dependency cache package.

See More! 🚀

imcache

A generic in-memory cache Go library. It supports expiration, sliding expiration, max entries limit, eviction callbacks and sharding.

See More! 🚀

nscache

A Go caching framework that supports multiple data source drivers.

See More! 🚀

otter

A high performance lockless cache for Go. Many times faster than Ristretto and friends.

See More! 🚀

remember-go

A universal interface for caching slow database queries (backed by redis, memcached, ristretto, or in-memory).

See More! 🚀

sturdyc

A caching library with advanced concurrency features designed to make I/O heavy applications robust and highly performant.

See More! 🚀

theine

High performance, near optimal in-memory cache with proactive TTL expiration and generics.

See More! 🚀

timedmap

Map with expiring key-value pairs.

See More! 🚀

ttlcache

An in-memory cache with item expiration and generics.

See More! 🚀

atlas

A Database Toolkit. A CLI designed to help companies better work with their data.

See More! 🚀

avro

Discover SQL schemas and convert them to AVRO schemas. Query SQL records into AVRO bytes.

See More! 🚀

bytebase

Safe database schema change and version control for DevOps teams.

See More! 🚀

darwin

Database schema evolution library for Go.

See More! 🚀

ttlcache

In-memory key value storage with TTL for each record.

See More! 🚀

badger

Fast key-value store in Go.

See More! 🚀

bbolt

An embedded key/value database for Go.

See More! 🚀

Bitcask

Bitcask is an embeddable, persistent and fast key-value (KV) database written in pure Go with predictable read/write performance, low latency and high throughput thanks to the bitcask on-disk layout (LSM+WAL).

See More! 🚀

buntdb

Fast, embeddable, in-memory key/value database for Go with custom indexing and spatial support.

See More! 🚀

clover

A lightweight document-oriented NoSQL database written in pure Golang.

See More! 🚀

cockroach

Scalable, Geo-Replicated, Transactional Datastore.

See More! 🚀

Coffer

Simple ACID key-value database that supports transactions.

See More! 🚀

column

High-performance, columnar, embeddable in-memory store with bitmap indexing and transactions.

See More! 🚀

CovenantSQL

CovenantSQL is a SQL database on blockchain.

See More! 🚀

Databunker

Personally identifiable information (PII) storage service built to comply with GDPR and CCPA.

See More! 🚀

dgraph

Scalable, Distributed, Low Latency, High Throughput Graph Database.

See More! 🚀

diskv

Home-grown disk-backed key-value store.

See More! 🚀

dolt

Dolt – It's Git for Data.

See More! 🚀

dtf

A distributed transaction manager. Support XA, TCC, SAGA, Reliable Messages.

See More! 🚀

eliasdb

Dependency-free, transactional graph database with REST API, phrase search and SQL-like query language.

See More! 🚀

godis

A Golang implemented high-performance Redis server and cluster.

See More! 🚀

dbmate

A lightweight, framework-agnostic database migration tool.

See More! 🚀

goleveldb

Implementation of the [LevelDB](https://github.com/google/leveldb) key/value database in Go.

See More! 🚀

hare

A simple database management system that stores each table as a text file of line-delimited JSON.

See More! 🚀

immudb

immudb is a lightweight, high-speed immutable database for systems and applications written in Go.

See More! 🚀

influxdb

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

See More! 🚀

ledisdb

Ledisdb is a high performance NoSQL like Redis based on LevelDB.

See More! 🚀

levigo

Levigo is a Go wrapper for LevelDB.

See More! 🚀

libradb

LibraDB is a simple database with less than 1000 lines of code for learning.

See More! 🚀

LinDB

LinDB is a scalable, high performance, high availability distributed time series database.

See More! 🚀

skeema

Pure-SQL schema management system for MySQL, with support for sharding and external online schema change tools.

See More! 🚀

sql-migrate

Database migration tool. Allows embedding migrations into the application using go-bindata.

See More! 🚀

sqlize

Database migration generator. Allows generate sql migration from model and existing sql by differ them.

See More! 🚀

lotusdb

Fast k/v database compatible with lsm and b+tree.

See More! 🚀

Milvus

Milvus is a vector database for embedding management, analytics and search.

See More! 🚀

moss

Moss is a simple LSM key-value storage engine written in 100% Go.

See More! 🚀

nutsdb

Nutsdb is a simple, fast, embeddable, persistent key/value store written in pure Go. It supports fully serializable transactions and many data structures such as list, set, sorted set.

See More! 🚀

objectbox-go

High-performance embedded Object Database (NoSQL) with Go API.

See More! 🚀

pebble

RocksDB/LevelDB inspired key-value database in Go.

See More! 🚀

piladb

Lightweight RESTful database engine based on stack data structures.

See More! 🚀

pogreb

Embedded key-value store for read-heavy workloads.

See More! 🚀

prometheus

Monitoring system and time series database.

See More! 🚀

pudge

Fast and simple key/value store written using Go's standard library.

See More! 🚀

rosedb

An embedded k-v database based on LSM+WAL, supports string, list, hash, set, zset.

See More! 🚀

rotom

A tiny Redis server built with Golang, compatible with RESP protocols.

See More! 🚀

rqlite

The lightweight, distributed, relational database built on SQLite.

See More! 🚀

tempdb

Key-value store for temporary items.

See More! 🚀

tidb

TiDB is a distributed SQL database. Inspired by the design of Google F1.

See More! 🚀

tiedot

Your NoSQL database powered by Golang.

See More! 🚀

unitdb

Fast timeseries database for IoT, realtime messaging applications. Access unitdb with pubsub over tcp or websocket using github.com/unit-io/unitd application.

See More! 🚀

go-fixtures

Django style fixtures for Golang's excellent built-in database/sql library.

See More! 🚀

go-pg-migrate

CLI-friendly package for go-pg migrations management.

See More! 🚀

go-pg-migrations

A Go package to help write migrations with go-pg/pg.

See More! 🚀

goavro

A Go package that encodes and decodes Avro data.

See More! 🚀

godfish

Database migration manager, works with native query language. Support for cassandra, mysql, postgres, sqlite3.

See More! 🚀

goose

Database migration tool. You can manage your database's evolution by creating incremental SQL or Go scripts.

See More! 🚀

gorm-seeder

Simple database seeder for Gorm ORM.

See More! 🚀

gormigrate

Database schema migration helper for Gorm ORM.

See More! 🚀

libschema

Define your migrations separately in each library. Migrations for open source libraries. MySQL & PostgreSQL.

See More! 🚀

migrate

Database migrations. CLI and Golang library.

See More! 🚀

migrator

Dead simple Go database migration library.

See More! 🚀

migrator

MySQL database migrator designed to run migrations to your features and manage database schema update with intuitive go code.

See More! 🚀

schema

Library to embed schema migrations for database/sql-compatible databases inside your Go binaries.

See More! 🚀

chproxy

HTTP proxy for ClickHouse database.

See More! 🚀

clickhouse-bulk

Collects small inserts and sends big requests to ClickHouse servers.

See More! 🚀

dbbench

Database benchmarking tool with support for several databases and scripts.

See More! 🚀

dg

A fast data generator that produces CSV files from generated relational data.

See More! 🚀

dynago

Simplify working with AWS DynamoDB.

See More! 🚀

gatewayd

Cloud-native database gateway and framework for building data-driven applications. Like API gateways, for databases.

See More! 🚀

go-mysql

Go toolset to handle MySQL protocol and replication.

See More! 🚀

gorm-multitenancy

Multi-tenancy support for GORM managed databases.

See More! 🚀

octillery

Go package for sharding databases ( Supports every ORM or raw SQL ).

See More! 🚀

onedump

Database backup from different drivers to different destinations with one command and configuration.

See More! 🚀

pg_timetable

Advanced scheduling for PostgreSQL.

See More! 🚀

pgweb

Web-based PostgreSQL database browser.

See More! 🚀

prep

Use prepared SQL statements without changing your code.

See More! 🚀

pREST

Simplify and accelerate development, ⚡ instant, realtime, high-performance on any Postgres application, existing or new.

See More! 🚀

rdb

Redis RDB file parser for secondary development and memory analysis.

See More! 🚀

rwdb

rwdb provides read replica capability for multiple database servers setup.

See More! 🚀

vitess

vitess provides servers and tools which facilitate scaling of MySQL databases for large scale web services.

See More! 🚀

wescale

WeScale is a database proxy designed to enhance the scalability, performance, security, and resilience of your applications.

See More! 🚀

bqb

Lightweight and easy to learn query builder.

See More! 🚀

buildsqlx

Go database query builder library for PostgreSQL.

See More! 🚀

builq

Easily build SQL queries in Go.

See More! 🚀

dbq

Zero boilerplate database operations for Go.

See More! 🚀

Dotsql

Go library that helps you keep sql files in one place and use them with ease.

See More! 🚀

gendry

Non-invasive SQL builder and powerful data binder.

See More! 🚀

sqlc

Generate type-safe code from SQL.

See More! 🚀

sqlf

Fast SQL query builder.

See More! 🚀

godbal

Database Abstraction Layer (dbal) for go. Support SQL builder and get result easily.

See More! 🚀

goqu

Idiomatic SQL builder and query library.

See More! 🚀

gosql

SQL Query builder with better null values support.

See More! 🚀

Hotcoal

Secure your handcrafted SQL against injection.

See More! 🚀

igor

Abstraction layer for PostgreSQL that supports advanced functionality and uses gorm-like syntax.

See More! 🚀

jet

Framework for writing type-safe SQL queries in Go, with ability to easily convert database query result into desired arbitrary object structure.

See More! 🚀

ormlite

Lightweight package containing some ORM-like features and helpers for sqlite databases.

See More! 🚀

ozzo-dbx

Powerful data retrieval methods as well as DB-agnostic query building capabilities.

See More! 🚀

qry

Tool that generates constants from files with raw SQL queries.

See More! 🚀

sg

A SQL Gen for generating standard SQLs(supports: CRUD) written in Go.

See More! 🚀

sq

Type-safe SQL builder and struct mapper for Go.

See More! 🚀

sqlingo

A lightweight DSL to build SQL in Go.

See More! 🚀