Sqlc
Generate type-safe code from SQL
Install / Use
/learn @sqlc-dev/SqlcREADME
sqlc: A SQL Compiler
sqlc generates type-safe code from SQL. Here's how it works:
- You write queries in SQL.
- You run sqlc to generate code with type-safe interfaces to those queries.
- You write application code that calls the generated code.
Check out an interactive example to see it in action, and the introductory blog post for the motivation behind sqlc.
Overview
Supported languages
Additional languages can be added via plugins.
Sponsors
Development is possible thanks to our sponsors. If you would like to support sqlc, please consider sponsoring on GitHub.
<p align="center"> <a href="https://riza.io?utm_source=sqlc+readme"><img width=400 src="https://sqlc.dev/sponsors/riza-readme.png" alt="Riza.io"></a> </p> <p align="center"> <a href="https://coder.com?utm_source=sqlc+readme"><img width=200 src="https://sqlc.dev/sponsors/coder-readme.png" alt="Coder.com" /></a> <a href="https://mint.fun?utm_source=sqlc+readme"><img width=200 src="https://sqlc.dev/sponsors/mint-readme.png" alt="Mint.fun" /></a> <a href="https://mux.com?utm_source=sqlc+readme"><img width=200 src="https://sqlc.dev/sponsors/mux-readme.png" alt="Mux.com" /></a> </p> <p align="center"> <a href="https://github.com/Cyberax">Cyberax</a> - <a href="https://github.com/NaNuNaNu">NaNuNaNu</a> - <a href="https://github.com/Stumble">Stumble</a> - <a href="https://github.com/WestfalNamur">WestfalNamur</a> - <a href="https://github.com/alecthomas">alecthomas</a> - <a href="https://github.com/cameronnewman">cameronnewman</a> - <a href="https://github.com/danielbprice">danielbprice</a> - <a href="https://github.com/davherrmann">davherrmann</a> - <a href="https://github.com/dvob">dvob</a> - <a href="https://github.com/gilcrest">gilcrest</a> - <a href="https://github.com/gzuidhof">gzuidhof</a> - <a href="https://github.com/jeffreylo">jeffreylo</a> - <a href="https://github.com/mmcloughlin">mmcloughlin</a> - <a href="https://github.com/ryohei1216">ryohei1216</a> - <a href="https://github.com/sgielen">sgielen</a> </p>Related Skills
oracle
339.1kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
prose
339.1kOpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
claude-opus-4-5-migration
83.8kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
Command Development
83.8kThis skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
