Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
b83465a
feat(sqlite): Add database analyzer using ncruces/go-sqlite3 (#4199)
kyleconroy Nov 29, 2025
7d08ef4
build(deps): bump actions/checkout from 5 to 6 (#4190)
dependabot[bot] Nov 29, 2025
cb887b5
build(deps): bump actions/upload-artifact from 4 to 5 (#4155)
dependabot[bot] Nov 29, 2025
71d4950
build(deps): bump golang from 1.25.3 to 1.25.4 (#4170)
dependabot[bot] Nov 29, 2025
2d98281
build(deps): bump certifi in /docs in the production-dependencies gro…
dependabot[bot] Nov 29, 2025
2e44b62
build(deps): bump google.golang.org/grpc (#4200)
dependabot[bot] Nov 29, 2025
3436b28
docs: add link to community python plugin (#4157)
rayakame Nov 29, 2025
405a905
feat(ast): implement comprehensive SQL AST formatting (#4205)
kyleconroy Nov 30, 2025
a9f7eae
feat(mysql): improve AST formatting and add DELETE JOIN support (#4206)
kyleconroy Nov 30, 2025
166398d
feat(sqlite): add SQLite support to format tests (#4207)
kyleconroy Dec 1, 2025
ebd32cf
refactor(ast): rename Formatter interface to Dialect (#4208)
kyleconroy Dec 1, 2025
21e6557
feat(expander): Add star expander for SELECT * and RETURNING * (Postg…
kyleconroy Dec 1, 2025
6222f15
build(deps): bump the production-dependencies group across 1 director…
dependabot[bot] Dec 10, 2025
115624b
build(deps): bump urllib3 in /docs in the production-dependencies gro…
dependabot[bot] Dec 10, 2025
f73cede
build(deps): bump golang from 1.25.4 to 1.25.5 (#4214)
dependabot[bot] Dec 10, 2025
f6aee32
fix: replace manual loop with copy() builtin (#4166)
rubensantoniorosa2704 Dec 10, 2025
74ecda5
feat: add SQLCEXPERIMENT environment variable for experimental featur…
kyleconroy Dec 10, 2025
d48076c
build(deps): bump actions/upload-artifact from 5 to 6 (#4233)
dependabot[bot] Dec 18, 2025
31d3bec
build(deps): bump urllib3 in /docs in the production-dependencies gro…
dependabot[bot] Dec 18, 2025
a8b20cc
build(deps): bump google.golang.org/protobuf (#4230)
dependabot[bot] Dec 18, 2025
53b12f9
feat: add native database support for e2e tests without Docker (#4236)
kyleconroy Dec 18, 2025
68b2089
feat(postgresql): add analyzerv2 experiment for database-only analysi…
kyleconroy Dec 22, 2025
ba513e7
Add parse subcommand with AST JSON output (#4240)
kyleconroy Dec 22, 2025
67e865b
docs: Add Claude Code remote environment setup instructions (#4246)
kyleconroy Dec 24, 2025
9ef7ca0
feat: graduate parsecmd experiment (#4253)
kyleconroy Jan 5, 2026
d21b4cc
fix(native): make MySQL connection check immediate on first attempt (…
kyleconroy Jan 5, 2026
4382f5c
build(deps): bump the production-dependencies group across 1 director…
dependabot[bot] Jan 5, 2026
e476db9
build(deps): bump the production-dependencies group across 1 director…
dependabot[bot] Jan 6, 2026
2e0435c
Add GitHub Topic to the plugins page (#4258)
rayakame Jan 7, 2026
16c9afd
feat: add ClickHouse support to `sqlc parse` (#4267)
kyleconroy Jan 30, 2026
c048334
build(deps): bump the production-dependencies group across 1 director…
dependabot[bot] Feb 1, 2026
744558d
build(deps): bump filippo.io/edwards25519 from 1.1.0 to 1.1.1 (#4303)
dependabot[bot] Feb 19, 2026
99be46a
Add sqlc-test-setup command for database test environment setup (#4304)
kyleconroy Feb 22, 2026
c998d72
build(deps): bump the production-dependencies group across 1 director…
dependabot[bot] Feb 22, 2026
024b843
build(deps): bump golang from 1.25.5 to 1.26.0 (#4294)
dependabot[bot] Feb 22, 2026
0a3d50e
Install PostgreSQL from theseus-rs/postgresql-binaries instead of apt…
kyleconroy Feb 22, 2026
ce83d3f
Upgrade Go version to 1.26.0 (#4312)
kyleconroy Feb 24, 2026
d06009f
build(deps): bump the production-dependencies group across 1 director…
dependabot[bot] Mar 20, 2026
dd83714
build(deps): bump golang from 1.26.0 to 1.26.1 (#4328)
dependabot[bot] Mar 20, 2026
4bf2159
build(deps): bump urllib3 from 2.6.2 to 2.6.3 in /docs (#4259)
dependabot[bot] Mar 20, 2026
7f6b186
Catch invalid ON CONFLICT DO UPDATE column references (#4366)
nikolayk812 Apr 17, 2026
98bdb52
build(deps): bump github.com/jackc/pgx/v5 from 5.8.0 to 5.9.0 (#4377)
dependabot[bot] Apr 17, 2026
21e4c47
docs: add sqlc-gen-sqlx to community language support (#4371)
jrandolf Apr 17, 2026
ee439b8
build(deps): bump actions/upload-artifact from 6 to 7 (#4320)
dependabot[bot] Apr 17, 2026
47cb4f9
Upgrade Go toolchain to 1.26.2 (#4378)
kyleconroy Apr 17, 2026
93e1a17
Remove github.com/jackc/pgx/v4 dependency (#4379)
kyleconroy Apr 17, 2026
a2f85e2
build(deps): bump requests from 2.32.5 to 2.33.0 in /docs (#4357)
dependabot[bot] Apr 17, 2026
924c12b
build(deps): bump pygments from 2.19.2 to 2.20.0 in /docs (#4363)
dependabot[bot] Apr 17, 2026
5757d94
build(deps): bump the production-dependencies group across 1 director…
dependabot[bot] Apr 17, 2026
cff03f4
build(deps): bump the production-dependencies group across 1 director…
dependabot[bot] Apr 17, 2026
bba5fc9
Skip CI/RTD builds when the change is irrelevant (#4381)
kyleconroy Apr 17, 2026
3f41c61
Preserve MySQL optimizer hints in generated query text (#4382)
kyleconroy Apr 17, 2026
244a90b
Dedupe sqlc.arg parameters wrapped in a type cast for MySQL (#4384)
kyleconroy Apr 17, 2026
837d7c9
Coerce SQLite JSONB output regardless of type casing (#4385)
kyleconroy Apr 17, 2026
07c3808
Rename :one return variable when it conflicts with a parameter (#4383)
kyleconroy Apr 17, 2026
64d18fc
Map xid8 to pgtype.Uint64 for pgx/v5 (#4387)
kyleconroy Apr 18, 2026
9d9026b
Emit pointers for nullable enum columns when emit_pointers_for_null_t…
kyleconroy Apr 19, 2026
3e9e3d4
Upgrade github.com/pingcap/tidb/pkg/parser (#4389)
kyleconroy Apr 19, 2026
394bdc7
Strip psql meta-commands from schema files (fixes #4065) (#4390)
kyleconroy Apr 19, 2026
3e66a4a
Update CI workflow to remove paths-ignore (#4393)
kyleconroy Apr 20, 2026
420f5e7
Add changelog for 1.31.0 (#4392)
kyleconroy Apr 20, 2026
0f82157
Release 1.31.0 (#4394)
kyleconroy Apr 20, 2026
ca8dbe9
build(deps): bump github.com/jackc/pgx/v5 (#4398)
dependabot[bot] Apr 21, 2026
dadc7ed
Downgrade github.com/ncruces/go-sqlite3 to v0.32.0 (#4400)
kyleconroy Apr 21, 2026
428d4e6
Remove go.mod replace directive that breaks 'go install ...@latest' (…
kyleconroy Apr 21, 2026
b4fe67f
Add changelog for 1.31.1 (#4406)
kyleconroy Apr 22, 2026
a95e91d
Release 1.31.1 (#4407)
kyleconroy Apr 22, 2026
08df6fc
Merge upstream v1.31.1
ethanndickson May 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ body:
description: What version of sqlc are you running? If you don't know, run `sqlc version`.
multiple: false
options:
- 1.31.1
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/buf.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: buf
on: pull_request
on:
pull_request:
paths-ignore:
- 'docs/**'
- '.readthedocs.yaml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-lint-action@v1
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
name: build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.25.0'
go-version: '1.26.2'
- name: install ./...
run: go build ./...
env:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/ci-kotlin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,26 @@ on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '.readthedocs.yaml'
pull_request:
paths-ignore:
- 'docs/**'
- '.readthedocs.yaml'
jobs:
build:
if: false
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.24.1'
go-version: '1.26.2'
- name: install ./...
run: go install ./...
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
repository: sqlc-dev/sqlc-gen-kotlin
path: kotlin
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,26 @@ on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '.readthedocs.yaml'
pull_request:
paths-ignore:
- 'docs/**'
- '.readthedocs.yaml'
jobs:
build:
if: false
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.24.1'
go-version: '1.26.2'
- name: install ./...
run: go install ./...
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
repository: sqlc-dev/sqlc-gen-python
path: python
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/ci-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,26 @@ on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '.readthedocs.yaml'
pull_request:
paths-ignore:
- 'docs/**'
- '.readthedocs.yaml'
jobs:
build:
if: false
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.24.1'
go-version: '1.26.2'
- name: install ./...
run: go install ./...
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
repository: sqlc-dev/sqlc-gen-typescript
path: typescript
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
name: build ${{ matrix.goos }}/${{ matrix.goarch }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.25.0'
go-version: '1.26.2'
- run: go build ./...
env:
CGO_ENABLED: "0"
Expand All @@ -25,10 +25,10 @@ jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.25.0'
go-version: '1.26.2'

- name: install gotestsum
run: go install gotest.tools/gotestsum@latest
Expand All @@ -50,13 +50,20 @@ jobs:
env:
CGO_ENABLED: "0"

- name: install databases
run: go run ./cmd/sqlc-test-setup install

- name: start databases
run: go run ./cmd/sqlc-test-setup start

- name: test ./...
run: gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m ./...
if: ${{ matrix.os }} != "windows-2022"
run: gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m -failfast ./...
env:
CI_SQLC_PROJECT_ID: ${{ secrets.CI_SQLC_PROJECT_ID }}
CI_SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
POSTGRESQL_SERVER_URI: "postgres://postgres:[email protected]:5432/postgres?sslmode=disable"
MYSQL_SERVER_URI: "root:mysecretpassword@tcp(127.0.0.1:3306)/mysql?multiStatements=true&parseTime=true"
CGO_ENABLED: "0"

vuln_check:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
Expand All @@ -32,7 +32,7 @@ jobs:
PG_PASSWORD: postgres
PG_PORT: ${{ job.services.postgres.ports['5432'] }}
- name: Save results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: sqlc-pg-gen-results
path: gen
Expand Down
8 changes: 8 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ build:
os: ubuntu-22.04
tools:
python: "3.11"
jobs:
post_checkout:
# Cancel PR builds that don't touch the docs.
# https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition
- |
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- docs/ .readthedocs.yaml; then
exit 183
fi
# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down
Loading
Loading