# sqlc Type-Safe SQL Code Generator

> sqlc is a SQL compiler that generates type-safe Go, Python, Kotlin, and TypeScript code from plain SQL queries. You write SQL, run sqlc, and get fully typed data access functions with compile-time safety — no ORM, no reflection, no runtime query building.

- Skill: `agentskillexchange/sqlc-type-safe-sql-code-generator` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/sqlc-type-safe-sql-code-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/sqlc-type-safe-sql-code-generator/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/sqlc-type-safe-sql-code-generator

---


# sqlc Type-Safe SQL Code Generator

sqlc is a SQL compiler that generates type-safe Go, Python, Kotlin, and TypeScript code from plain SQL queries. You write SQL, run sqlc, and get fully typed data access functions with compile-time safety — no ORM, no reflection, no runtime query building.

## Installation

Requirements and caveats from upstream:
- [sqlc-gen-python](https://github.com/sqlc-dev/sqlc-gen-python)

Basic usage or getting-started notes:
- You run sqlc to generate code with type-safe interfaces to those queries.
- Check out [an interactive example](https://play.sqlc.dev/) to see it in action, and the [introductory blog post](https://conroy.org/introducing-sqlc) for the motivation behind sqlc.

- Source: https://github.com/sqlc-dev/sqlc
- Extracted from upstream docs: https://raw.githubusercontent.com/sqlc-dev/sqlc/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/sqlc-type-safe-sql-code-generator/)

