The best sqlc alternatives
3 tools that do a similar job to sqlc, 3 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.
- 1

sqlx
Open source · MIT · ★ 17.7k
Go helper library that adds convenience features on top of the standard database/sql package.
Best for: Go developers who already use database/sql and want less boilerplate when reading rows; Projects that want named query parameters such as :first_name
- 2

GORM
Open source · MIT · ★ 40k
A Go library that maps database tables to Go structs so you can query data without writing raw SQL.
Best for: Go developers building web services or APIs that store data in a relational database; Teams who want a consistent, typed way to query tables from Go code
- 3

GraphQL Code Generator
Open source · MIT · ★ 11.3k
Generates code from your GraphQL schema and queries, using plugins you choose.
Best for: Frontend developers who want typed code for GraphQL queries; Backend teams who want code generated from their schema
How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to sqlc. We don't take payment for placement.