Automated ranking

Best Go ORM Libraries

Compare go orm libraries by maintenance, adoption, security, release activity, and Go ecosystem usage. Top packages in this group include cockroach, sqlx, GORM.

Best overall

cockroach

Highest combined package health score.

92
Best maintained

cockroach

Strongest maintenance signal in this category.

90
Most adopted

cockroach

Highest adoption signal from stars, forks, and imported-by data.

100

Ranked Packages

25 packages

#1 cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.

Go ORM Libraries 32.2K stars 0 imported-by 100% confidence
92

#2 sqlx

Package sqlx provides general purpose extensions to database/sql.

Go ORM Libraries 17.6K stars 25.6K imported-by 100% confidence
79

#3 GORM

Developer-friendly ORM library for Go.

Go ORM Libraries 0 stars 86.9K imported-by 80% confidence
76

#4 manifestor

Package manifestor provides shared types for HLS and DASH manifest processing.

Go ORM Libraries 0 stars 0 imported-by 80% confidence
64

#6 xorm

Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,mssql,oracle, Moved to https://gitea.com/xorm/xorm

Go ORM Libraries 0 stars 4.0K imported-by 40% confidence
63

#7 Ent

Package ent is the interface between end-user schemas and entc (ent codegen).

Go ORM Libraries 0 stars 0 imported-by 60% confidence
55

#8 pogreb

Package pogreb implements an embedded key-value store for read-heavy workloads.

Go ORM Libraries 0 stars 62 imported-by 80% confidence
53

#10 go-kallax.v1

Kallax is a PostgreSQL typesafe ORM for the Go language.

Go ORM Libraries 0 stars 118 imported-by 75% confidence
48

#11 sqlf

Package sqlf is an SQL statement builder and executor.

Go ORM Libraries 0 stars 22 imported-by 60% confidence
48

#12 GoSQLX

High-performance SQL parser, formatter, linter, and security scanner with multi-dialect support and WASM playground.

Go ORM Libraries 0 stars 0 imported-by 45% confidence
48

#13 godbal

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

Go ORM Libraries 0 stars 24 imported-by 80% confidence
47

#14 forms

package forms is a lightweight, but incredibly useful library for parsing form data from an http.Request.

Go ORM Libraries 0 stars 20 imported-by 80% confidence
45

#15 sessions

Dead simple, highly performant, highly customizable sessions service for go http servers.

Go ORM Libraries 0 stars 4 imported-by 80% confidence
44

#16 etcd

Distributed reliable key-value store for the most critical data of a distributed system

Go ORM Libraries 0 stars 0 imported-by 25% confidence
44

#17 govvv

“go build” wrapper to easily add version information into Go binaries.

Go ORM Libraries 0 stars 0 imported-by 25% confidence
44

#18 webhooked

A webhook receiver on steroids: handle, secure, format and store a Webhook payload has never been easier.

Go ORM Libraries 0 stars 0 imported-by 25% confidence
44

#19 yago

Go ORM Libraries 0 stars 19 imported-by 65% confidence
42

#20 dgraph

high-performance graph database for real-time use cases

Go ORM Libraries 0 stars 0 imported-by 80% confidence
41

#21 kala

Simplistic, modern, and performant job scheduler.

Go ORM Libraries 0 stars 0 imported-by 80% confidence
40

#22 todotxt

Package todotxt is yet another a Go library for Gina Trapani's todo.txt files.

Go ORM Libraries 0 stars 0 imported-by 60% confidence
37

#23 dolt

Dolt – Git for Data

Go ORM Libraries 0 stars 0 imported-by 80% confidence
36

#24 lore

Simple and lightweight pseudo-ORM/pseudo-struct-mapping environment for Go.

Go ORM Libraries 0 stars 0 imported-by 60% confidence
34

#25 tidb

TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data silos. No noisy neighbors. No infrastructure ceiling.

Go ORM Libraries 0 stars 0 imported-by 80% confidence
28

Comparison Matrix

score dimensions
Package Health Maintenance Adoption Security Imported by
cockroach 92 90 100 92 0
sqlx 79 38 100 92 25.6K
GORM 76 63 84 92 86.9K
manifestor 64 90 7 92 0
aerospike-client-go 63 48 61 92 1.6K
xorm 63 48 61 92 4.0K
Ent 55 83 5 70 0
pogreb 53 27 38 92 62
go-repository-bun 52 75 5 70 0
go-kallax.v1 48 15 35 92 118
sqlf 48 15 30 92 22
GoSQLX 48 48 7 92 0
godbal 47 15 31 92 24
forms 45 15 29 92 20
sessions 44 15 19 92 4
etcd 44 48 7 70 0
govvv 44 48 7 70 0
webhooked 44 48 7 70 0
yago 42 27 22 70 19
dgraph 41 15 7 92 0
kala 40 15 7 92 0
todotxt 37 15 7 70 0
dolt 36 15 7 92 0
lore 34 15 7 70 0
tidb 28 15 7 35 0

Related Comparisons

Go ORM Libraries

sqlx vs GORM

Compare health, maintenance, adoption, security, and release signals.

79