Stack Gems
Menu
← Catalog

sqlc

MIT type-safe code gen from SQL

Databases / Data · OSS/MIT · 18.3k

What's Good

MIT. Write SQL, get Go/Kotlin/Python/TypeScript stubs with compile-time types. No runtime ORM magic. Great for Postgres/MySQL/SQLite shops that like queries readable.

The Catch

Codegen from SQL - not Prisma/Drizzle ORM, not a database. Schema migrations are still yours (golang-migrate, Atlas, etc.). Language support depth varies.

Verdict

MIT SQL codegen. Free forever; not an ORM.

Embed

Reviewed on Stack Gems
[![Reviewed on Stack Gems](https://stackgems.com/badge/sqlc.svg)](https://stackgems.com/gems/sqlc)