Database Go Libraries Ranking
Libraries for building and using SQL.
155 repositories, updated daily.
- Milvus is a vector database for embedding management, analytics and search.
- TiDB is a distributed SQL database. Inspired by the design of Google F1.
- Scalable, Geo-Replicated, Transactional Datastore.
- Scalable datastore for metrics, events, and real-time analytics.
- Scalable, Distributed, Low Latency, High Throughput Graph Database.
- vitess provides servers and tools which facilitate scaling of MySQL databases for large scale web services.
- The lightweight, distributed, relational database built on SQLite.
- fast, resource-effective and scalable open source time series database. May be used as long-term remote storage for Prometheus. Supports PromQL.
- Safe database schema change and version control for DevOps teams.
- Groupcache is a caching and cache-filling library, intended as a replacement for memcached in many cases.
- Database migration tool. You can manage your database's evolution by creating incremental SQL or Go scripts.
DiceDB/dice
- An open-source, fast, reactive, in-memory database optimized for modern hardware. Higher throughput and lower median latencies, making it ideal for modern workloads.
- immudb is a lightweight, high-speed immutable database for systems and applications written in Go.
ariga/atlas
- A Database Toolkit. A CLI designed to help companies better work with their data.
- A lightweight, framework-agnostic database migration tool.
- Go toolset to handle MySQL protocol and replication.
- An embedded k-v database based on LSM+WAL, supports string, list, hash, set, zset.
- Fast, embeddable, in-memory key/value database for Go with custom indexing and spatial support.
prest/prest
- Simplify and accelerate development, ⚡ instant, realtime, high-performance on any Postgres application, existing or new.
- Ledisdb is a high performance NoSQL like Redis based on LevelDB.
- A Golang implemented high-performance Redis server and cluster.
go-jet/jet
- Framework for writing type-safe SQL queries in Go, with ability to easily convert database query result into desired arbitrary object structure.
- 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.
- Database migration tool. Allows embedding migrations into the application using go-bindata.
lindb/lindb
- LinDB is a scalable, high performance, high availability distributed time series database.
eko/gocache
- A complete Go cache library with multiple stores (memory, memcache, redis, ...), chainable, loadable, metrics cache and more.
- Cache library with support for expirable Cache, LFU, LRU and ARC.
- A high performance lockless cache for Go. Many times faster than Ristretto and friends.
- fast thread-safe inmemory cache for big number of entries. Minimizes GC overhead.
- In-memory key:value cache which supports automatic invalidation based on timeouts.
- Non-invasive SQL builder and powerful data binder.
- Database migration, creation, ORM, etc... for MySQL, PostgreSQL, and SQLite.
- High-performance, columnar, embeddable in-memory store with bitmap indexing and transactions.
- Personally identifiable information (PII) storage service built to comply with GDPR and CCPA.
- Pure-SQL schema management system for MySQL, with support for sharding and external online schema change tools.
- A caching library with advanced concurrency features designed to make I/O heavy applications robust and highly performant.
- High-performance embedded Object Database (NoSQL) with Go API.
- An in-memory cache with item expiration and generics.
- Database schema migration helper for Gorm ORM.
- Dependency-free, transactional graph database with REST API, phrase search and SQL-like query language.
- Moss is a simple LSM key-value storage engine written in 100% Go.
- Database backup from different drivers to different destinations with one command and configuration.
- High performance graph + vector database (Neo4j and qDrant compatible), focused on low latency graph-rag retreival for AI systems.
- A lightweight document-oriented NoSQL database written in pure Golang.
- Go library that helps you keep sql files in one place and use them with ease.
- Powerful data retrieval methods as well as DB-agnostic query building capabilities.
HDT3213/rdb
- Redis RDB file parser for secondary development and memory analysis.
- Embeddable Distributed in-memory data store compatible with Redis clients.
- Collects small inserts and sends big requests to ClickHouse servers.
- Unified Go cache library supporting multi-level caching.
- High performance, near optimal in-memory cache with proactive TTL expiration and generics.
- Fast and simple key/value store written using Go's standard library.
- Golang Cache component for multiple drivers.
- WeScale is a database proxy designed to enhance the scalability, performance, security, and resilience of your applications.
- Cloud-native database gateway and framework for building data-driven applications. Like API gateways, for databases.
elgris/sqrl
- SQL query builder, fork of Squirrel with improved performance.
- Lightweight columnar log analytics database with a pipe-style query language inspired by SPL.
A GC-less, fast and generic LRU hashmap library with optional locking, sharding, eviction and expiration.
- A distributed high-performance key-value store. On Disk. Eventual consistent. HA. Able to grow or shrink without service interruption.
- Pocache is a minimal cache package which focuses on a preemptive optimistic caching strategy.
- Lightweight RESTful database engine based on stack data structures.
- LibraDB is a simple database with less than 1000 lines of code for learning.
- Go package for sharding databases ( Supports every ORM or raw SQL ).
- Type-safe SQL builder and struct mapper for Go.
- Go database query builder library for PostgreSQL.
- Eventually consistent distributed in-memory cache Go library.
- A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern.
aymanhs/nanotdb
- A lightweight, zero-dependency, append-only Time-Series Database and Dashboard optimized for low-power hardware.
galeone/igor
- Abstraction layer for PostgreSQL that supports advanced functionality and uses gorm-like syntax.
sunary/sqlize
- Database migration generator. Allows generate sql migration from model and existing sql by differ them.
unit-io/unitdb
- Fast timeseries database for IoT, realtime messaging applications. Access unitdb with pubsub over tcp or websocket using github.com/unit-io/unitd application.
erni27/imcache
- A generic in-memory cache Go library. It supports expiration, sliding expiration, max entries limit, eviction callbacks and sharding.
sj14/dbbench
- Database benchmarking tool with support for several databases and scripts.
- High-performance SQL parser, formatter, linter, and security scanner with multi-dialect support and WASM playground.
- Fast in-memory key:value store/cache library. Pointer caches.
jameycribbs/hare
- A simple database management system that stores each table as a text file of line-delimited JSON.
- A Go package to help write migrations with go-pg/pg.
- Multi-tenancy support for GORM managed databases.
- PostgreSQL CLI client written in Go, inspired by pgcli.
- RESTful caching micro-service backed by Couchbase server.
xujiajun/godbal
- Database Abstraction Layer (dbal) for go. Support SQL builder and get result easily.
SennovE/qrafter
- Type-safe SQL query builder with dialect-aware rendering, schema introspection, and migration generation.
khezen/avro
- Discover SQL schemas and convert them to AVRO schemas. Query SQL records into AVRO bytes.
- A fast data generator that produces CSV files from generated relational data.
- BigCache with clustering support and individual item expiration.
adlio/schema
- Library to embed schema migrations for database/sql-compatible databases inside your Go binaries.
xgzlucario/rotom
- A tiny Redis server built with Golang, compatible with RESP protocols.
claygod/coffer
- Simple ACID key-value database that supports transactions.
- Running SQL in production with ACLs, logs, and shared links.
hexdigest/prep
- Use prepared SQL statements without changing your code.
- Django style fixtures for Golang's excellent built-in database/sql library.
- MongoDB-like embedded database, written in pure-go. Supports indexing and complex queries.
yuseferi/gocache
- A data race free Go ache library with high performance and auto pruge functionality
- MySQL database migrator designed to run migrations to your features and manage database schema update with intuitive go code.
mdaliyan/icache
- A High Performance, Generic, thread-safe, zero-dependency cache package.
andizzle/rwdb
- rwdb provides read replica capability for multiple database servers setup.
coregx/relica
- Type-safe database query builder with zero production dependencies, LRU statement cache, batch operations, and support for JOINs, subqueries, CTEs, and window functions.
muir/libschema
- Define your migrations separately in each library. Migrations for open source libraries. MySQL & PostgreSQL.
- CLI for versioned database schema migrations with support for PostgreSQL, MySQL, ClickHouse, Tarantool, and Apache Iceberg.
qyiun666/MemHop
- Embedded cognitive memory database for AI agents. Six-layer architecture (L0-L5), Dream consolidation pipeline, three-channel RRF retrieval (BM25 + f16 vector + entity), single .meh file, pure Go, zero infrastructure.
- Full implementation of Oracle Coherence cache API for Go applications using gRPC as network transport.
no-src/nscache
- A Go caching framework that supports multiple data source drivers.
pupizoid/ormlite
- Lightweight package containing some ORM-like features and helpers for sqlite databases.
- Database migration manager, works with native query language. Support for cassandra, mysql, postgres, sqlite3.
- Zero-boilerplate SQL helper with struct tags and Go generics (CRUD, UPSERT, JOIN, benchmarks).
- Fast and cheap SQL builder which does only one thing, SQL building.
- A pure non-intrusive cache library implemented by golang, you can use it to implement your own distributed cache.
szyhf/go-gcache
- The generic version of `GCache`, cache support for expirable Cache, LFU, LRU and ARC.
- CLI-friendly package for go-pg migrations management.
- Powerful SQL Query builder that automatically generates SQL queries from structs.
- Serverless PostgreSQL backups to S3 using AWS Lambda, with daily, monthly, and yearly rotation.
feichai0017/NoKV
- Native metadata service for distributed filesystems, object storage, and AI dataset workloads.
go-the-way/sg
- A SQL Gen for generating standard SQLs(supports: CRUD) written in Go.