SQL Databases
sqlc — Compile SQL to type-safe Go code
Compile SQL queries to type-safe Go code with sqlc. Use this skill whenever working with sqlc configuration (sqlc.yaml, sqlc.json), writing SQL query files with sqlc annotations (:one, :many, :exec, :execrows, :execresult, :execlastid, :copyfrom, :batchone, :batchmany, :batchexec), configuring type overrides, setting up vet/lint rules, managing sqlc plugins (WASM or process), or troubleshooting sqlc code generation. Also triggers when code imports generated sqlc packages, when the user mentions "sqlc generate", "sqlc init", "sqlc vet", "sqlc diff", "sqlc compile", or asks about SQL-to-Go code generation, query compilation, database schema parsing, or Go struct generation from SQL tables. Applies to PostgreSQL, MySQL, and SQLite engines.