Generate type-safe code from SQL
Find a file
Kyle Gray aa490d4de0
feat(cli): Bump version to 1.29.0 ()
* Disable language tests for now

* Update examples

* Update testdata

* Update the rest
2025-04-16 22:49:41 -07:00
.github feat(cli): Bump version to 1.29.0 () 2025-04-16 22:49:41 -07:00
.vscode feat(devenv): add vscode settings.json with auto newline () 2023-10-11 13:12:22 -07:00
cmd feat(plugin): Use gRPC interface for codegen plugin communication () 2023-11-01 16:01:33 -07:00
docs feat(cli): Bump version to 1.29.0 () 2025-04-16 22:49:41 -07:00
examples feat(cli): Bump version to 1.29.0 () 2025-04-16 22:49:41 -07:00
internal feat(cli): Bump version to 1.29.0 () 2025-04-16 22:49:41 -07:00
pkg/cli chore: Finish migration to sqlc-dev/sqlc () 2023-07-31 08:21:16 -07:00
protos feat(verify): Add new command to verify queries and migrations () 2023-11-21 09:07:39 -08:00
scripts Add support for json format from process plugins () 2025-02-08 11:02:30 -08:00
.gitignore chore: Ignore Vim swap files () 2023-08-28 12:08:08 -07:00
.readthedocs.yaml docs: Add a ReadTheDocs config file () 2023-06-14 07:48:28 -07:00
buf.gen.yaml feat(verify): Add new command to verify queries and migrations () 2023-11-21 09:07:39 -08:00
buf.lock protos: Add missing field name () 2023-06-21 15:13:28 -07:00
buf.work.yaml setup bufbuild to generate proto () 2022-12-01 22:28:01 -08:00
cliff.toml chore: Finish migration to sqlc-dev/sqlc () 2023-07-31 08:21:16 -07:00
devenv.lock build: Upgrade to wazero@v1.9.0 () 2025-03-24 11:25:14 -07:00
devenv.nix build: Upgrade to wazero@v1.9.0 () 2025-03-24 11:25:14 -07:00
devenv.yaml build: Configure dependencies via devenv.sh () 2023-06-09 11:00:21 -07:00
docker-compose.yml test: Enabled MySQL database () 2024-04-04 00:08:49 -07:00
Dockerfile build(deps): bump golang from 1.24.1 to 1.24.2 () 2025-04-11 10:00:41 -07:00
go.mod build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 () 2025-04-16 22:38:15 -07:00
go.sum build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 () 2025-04-16 22:38:15 -07:00
LICENSE update: Set current year in docs and license () 2024-07-16 16:29:33 -07:00
Makefile Add support for json format from process plugins () 2025-02-08 11:02:30 -08:00
placeholder.go chore: Finish migration to sqlc-dev/sqlc () 2023-07-31 08:21:16 -07:00
README.md docs: Fix readme links () 2024-06-05 18:24:27 -07:00

sqlc: A SQL Compiler

go Go Report Card

sqlc generates type-safe code from SQL. Here's how it works:

  1. You write queries in SQL.
  2. You run sqlc to generate code with type-safe interfaces to those queries.
  3. 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.

Riza.io

Coder.com Mint.fun Mux.com

Cyberax - NaNuNaNu - Stumble - WestfalNamur - alecthomas - cameronnewman - danielbprice - davherrmann - dvob - gilcrest - gzuidhof - jeffreylo - mmcloughlin - ryohei1216 - sgielen