« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
sqlc.dev · Extracted in 721 ms

Compile SQL to type-safe code

Source: https://sqlc.dev

Compile SQL to type-safe code; catch failures before they happen.

Get started

How it works

sqlc generates fully type-safe idiomatic code from SQL.

  1. You write SQL queries
  2. You run sqlc to generate code that presents type-safe interfaces to those queries
  3. You write application code calling the methods sqlc generated.

Seriously, it's that easy. You don't have to write any boilerplate SQL querying code ever again. See the current list of supported programming languages and databases .

Ready to try it out?
Download the latest release now.

Linux macOS (AMD64) macOS (ARM64) Windows

Used by these lovely companies

From the blog

release notes

Managed databases for any PostgreSQL server

August 5, 2024

sqlc is a command line tool that generates type-safe code from SQL. Today we released sqlc v1.27.0 with support for local managed databases.

release notes

Mainly a bug fix release

March 28, 2024

sqlc is a command line tool that generates type-safe code from SQL. Today we released sqlc v1.26.0 , mainly a bug fix release.

release notes

Removing our cgo dependency in v1.25.0

January 4, 2024

sqlc is a command line tool that generates type-safe code from SQL. Today we released sqlc v1.25.0 , a smaller release that removes our reliance on cgo.