暂无描述

Jason Cabot de8ae610eb Add `emit_sql_as_comment` option to Go code plugin 1 年之前
.github 738d1538fc build(deps): bump actions/setup-go from 4 to 5 (#3047) 11 月之前
.vscode 170059f3f2 feat(devenv): add vscode settings.json with auto newline (#2834) 1 年之前
cmd 4507ede83f feat(plugin): Use gRPC interface for codegen plugin communication (#2930) 1 年之前
docs de8ae610eb Add `emit_sql_as_comment` option to Go code plugin 11 月之前
examples ecb0491e65 feat(sqlite): Switch from mattn/go-sqlite3 to modernc.org/sqlite (#3040) 11 月之前
internal de8ae610eb Add `emit_sql_as_comment` option to Go code plugin 11 月之前
pkg 3b48228691 chore: Finish migration to sqlc-dev/sqlc (#2548) 1 年之前
protos 64313a6fe2 feat(verify): Add new command to verify queries and migrations (#2986) 11 月之前
scripts ed9264d31c feat: Add script to mirror code to sqlc-gen-go (#2952) 1 年之前
.gitignore c269459151 chore: Ignore Vim swap files (#2616) 1 年之前
.readthedocs.yaml 1663392017 docs: Add a ReadTheDocs config file (#2327) 1 年之前
Dockerfile 4f3940e4ad build(deps): bump golang from 1.21.4 to 1.21.5 (#3043) 11 月之前
LICENSE 3b528ec35d chore: Clean up a little, update LICENSE and README (#2941) 1 年之前
Makefile eac251f258 docs: Use docker compose v2 and update MYSQL_DATABASE env var (#2870) 1 年之前
README.md 3b528ec35d chore: Clean up a little, update LICENSE and README (#2941) 1 年之前
buf.gen.yaml 64313a6fe2 feat(verify): Add new command to verify queries and migrations (#2986) 11 月之前
buf.lock da6fe0a21f protos: Add missing field name (#2354) 1 年之前
buf.work.yaml 6eb27c005c setup bufbuild to generate proto (#1974) 1 年之前
cliff.toml 3b48228691 chore: Finish migration to sqlc-dev/sqlc (#2548) 1 年之前
devenv.lock 07933428eb build(devenv): bump go from 1.20.7 to 1.21.0 (#2702) 1 年之前
devenv.nix 5ef20c6749 refactor(codegen): Remove golang and json settings from plugin proto (#2822) 1 年之前
devenv.yaml b09ddb7d14 build: Configure dependencies via devenv.sh (#2319) 1 年之前
docker-compose.yml eac251f258 docs: Use docker compose v2 and update MYSQL_DATABASE env var (#2870) 1 年之前
go.mod ecb0491e65 feat(sqlite): Switch from mattn/go-sqlite3 to modernc.org/sqlite (#3040) 11 月之前
go.sum ecb0491e65 feat(sqlite): Switch from mattn/go-sqlite3 to modernc.org/sqlite (#3040) 11 月之前
placeholder.go 3b48228691 chore: Finish migration to sqlc-dev/sqlc (#2548) 1 年之前

README.md

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

Acknowledgments

sqlc was inspired by PugSQL and HugSQL.