Skip to content
Note · In the April 2026 issue

sqlc + pgx: the small ritual

Write the query first. The handler types fall out for free.

Published April 3, 2026

Query-first feels backwards at first. Ten minutes in, you stop worrying about struct shapes entirely.