Go (Golang) SQL query builders
Libraries that build and run SQL from Go code, ranked by GitHub stars
Mis à jour · GitHub stars (stars)
Pourquoi ces 20
Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.
-
1
Squirrel
Go library that helps you build SQL queries.
7,988 stars 516 forkslast push 2024-04-24GoNOASSERTION
Aussi dans: #19 Go database tools and engines#4 Go (Golang) ORMs and SQL query builders
-
2
jet
Framework for writing type-safe SQL queries in Go, with ability to easily convert database query result into desired arbitrary object structure.
3,835 stars 198 forkslast push 2026-11-07GoApache-2.0
Aussi dans: #8 Go (Golang) ORMs and SQL query builders
-
3
goqu
Idiomatic SQL builder and query library.
2,677 stars 227 forkslast push 2026-11-19GoMIT
Aussi dans: #11 Go (Golang) ORMs and SQL query builders
-
4
ozzo-dbx
Powerful data retrieval methods as well as DB-agnostic query building capabilities.
674 stars 111 forkslast push 2026-10-27GoMIT
Aussi dans: #17 Go (Golang) ORMs and SQL query builders
-
5
sqlingo
A lightweight DSL to build SQL in Go.
456 stars 25 forkslast push 2026-04-01GoMIT
Aussi dans: #18 Go (Golang) ORMs and SQL query builders
-
6
dbq
Zero boilerplate database operations for Go.
417 stars 20 forkslast push 2021-02-22GoNOASSERTION
Aussi dans: #19 Go (Golang) ORMs and SQL query builders
-
7
sq
Type-safe SQL builder and struct mapper for Go.
200 stars 11 forkslast push 2023-01-15GoMIT
Aussi dans: #20 Go (Golang) ORMs and SQL query builders
-
8
-
9
-
10
buildsqlx
Go database query builder library for PostgreSQL.
185 stars 17 forkslast push 2026-06-21GoMIT
-
11
igor
Abstraction layer for PostgreSQL that supports advanced functionality and uses gorm-like syntax.
129 stars 5 forkslast push 2024-04-14GoApache-2.0
-
12
-
13
godbal
Database Abstraction Layer (dbal) for go. Support SQL builder and get result easily.
60 stars 20 forkslast push 2019-01-30GoMIT
-
14
qrafter
Type-safe SQL query builder with dialect-aware rendering, schema introspection, and migration generation.
53 stars 4 forkslast push 2026-06-22GoMIT
-
15
-
16
qry
Tool that generates constants from files with raw SQL queries.
35 stars 7 forkslast push 2024-02-20GoMIT
-
17
relica
Type-safe database query builder with zero production dependencies, LRU statement cache, batch operations, and support for JOINs, subqueries, CTEs, and...
28 stars 0 forkslast push 2026-11-11GoMIT
-
18
-
19
ormlite
Lightweight package containing some ORM-like features and helpers for sqlite databases.
15 stars 3 forkslast push 2023-01-30GoMIT
-
20
sqlh
Zero-boilerplate SQL helper with struct tags and Go generics (CRUD, UPSERT, JOIN, benchmarks).
15 stars 0 forkslast push 2026-06-19GoBSD-3-Clause
Références
- avelino/awesome-go: SQL Query Builders, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-21 00:36 UTC.
- avelino/awesome-go (SQL Query Builders), GitHub community list, 30 tools with a public repository.