Go(Golang) ORM·SQL 쿼리 빌더 톱 20
GORM, ent, sqlc, Squirrel, bun, goqu and other ways to talk to a SQL database from Go
업데이트 · GitHub stars (stars)
왜 이 20개인가
Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not speed or fit, so each row also shows forks, licence and the last push. Go teams pick between three styles here: full ORMs that map structs to tables (GORM, ent, bun), code generators that write typed Go from your SQL or schema (sqlc, SQLBoiler, jet, xo) and query builders that only assemble SQL strings (Squirrel, goqu). Many Go teams use plain database/sql or sqlx with no ORM at all. Older projects keep their stars after activity slows: check the last push. It doesn't show benchmark results or which databases each one supports.
-
1
GORM
The fantastic ORM library for Golang, aims to be developer friendly.
40,000 stars 4,240 forkslast push 2026-10-24GoMIT
다른 리스트: #1 Go (Golang) ORMs
-
2
-
3
ent
An entity framework for Go. Simple, yet powerful ORM for modeling and querying data.
17,241 stars 1,024 forkslast push 2026-10-14GoApache-2.0
-
4
Squirrel
Go library that helps you build SQL queries.
7,987 stars 516 forkslast push 2024-04-24GoNOASSERTION
다른 리스트: #19 Go database tools and engines#1 Go (Golang) SQL query builders
-
5
SQLBoiler
ORM generator. Generate a featureful and blazing-fast ORM tailored to your database schema.
6,978 stars 560 forkslast push 2026-11-08GoNOASSERTION
-
6
bun
SQL-first Golang ORM. Successor of go-pg.
5,003 stars 323 forkslast push 2026-11-20GoBSD-2-Clause
다른 리스트: #2 Go (Golang) ORMs
-
7
xo
Generate idiomatic Go code for databases based on existing schema definitions or custom queries supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft...
3,898 stars 337 forkslast push 2026-09-08GoMIT
-
8
jet
Framework for writing type-safe SQL queries in Go, with ability to easily convert database query result into desired arbitrary object structure.
3,836 stars 198 forkslast push 2026-11-07GoApache-2.0
-
9
gorp
Go Relational Persistence, ORM-ish library for Go.
3,742 stars 379 forkslast push 2024-11-19GoMIT
다른 리스트: #3 Go (Golang) ORMs
-
10
upper.io/db
Single interface for interacting with different data sources through the use of adapters that wrap mature database drivers.
3,660 stars 238 forkslast push 2026-10-06GoMIT
다른 리스트: #4 Go (Golang) ORMs
-
11
-
12
bob
SQL query builder and ORM/Factory generator for Go. Successor of SQLBoiler.
1,805 stars 120 forkslast push 2026-11-22GoMIT
다른 리스트: #6 Go (Golang) ORMs
-
13
go-sqlbuilder
A flexible and powerful SQL string builder library plus a zero-config ORM.
1,730 stars 146 forkslast push 2026-11-25GoMIT
다른 리스트: #7 Go (Golang) ORMs
-
14
pop/soda
Database migration, creation, ORM, etc... for MySQL, PostgreSQL, and SQLite.
1,528 stars 248 forkslast push 2026-11-21GoMIT
다른 리스트: #8 Go (Golang) ORMs
-
15
reform
Better ORM for Go, based on non-empty interfaces and code generation.
1,453 stars 74 forkslast push 2026-10-19GoMIT
다른 리스트: #9 Go (Golang) ORMs
-
16
rel
Modern Database Access Layer for Golang - Testable, Extendable and Crafted Into a Clean and Elegant API.
788 stars 62 forkslast push 2026-11-01GoMIT
다른 리스트: #10 Go (Golang) ORMs
-
17
ozzo-dbx
Powerful data retrieval methods as well as DB-agnostic query building capabilities.
674 stars 111 forkslast push 2026-10-27GoMIT
-
18
-
19
dbq
Zero boilerplate database operations for Go.
417 stars 20 forkslast push 2021-02-22GoNOASSERTION
-
20
나란히 비교
| Licence | MIT | – |
|---|---|---|
| Style (ORM, code generator, query builder) | Full-featured ORM with associations and hooks | Code generator producing type-safe Go from SQL |
| Databases supported | MySQL, PostgreSQL, GaussDB, SQLite, SQL Server, TiDB, Oracle (official drivers) | – |
| Migrations | AutoMigrate feature listed in README | – |
참고 자료
- avelino/awesome-go: ORM and SQL Query Builders, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-25 11:52 UTC.
- avelino/awesome-go (ORM, SQL Query Builders), GitHub community list, 50 tools with a public repository.
- GORM: licence, pkg.go.dev, checked 2026-11-18.
- GORM: style (orm, code generator, query builder), github.com, checked 2026-11-18.
- GORM: databases supported, gorm.io, checked 2026-11-18.
- sqlc: style (orm, code generator, query builder), docs.sqlc.dev, checked 2026-11-18.