Skip to content

Commit 1613aec

Browse files
committed
Merge branch 'main' of https://github.com/sqlc-dev/sqlc into fix-sqlite-order-by-args
* 'main' of https://github.com/sqlc-dev/sqlc: Map xid8 to pgtype.Uint64 for pgx/v5 (#4387) Rename :one return variable when it conflicts with a parameter (#4383) Coerce SQLite JSONB output regardless of type casing (#4385) Dedupe sqlc.arg parameters wrapped in a type cast for MySQL (#4384) Preserve MySQL optimizer hints in generated query text (#4382) Skip CI/RTD builds when the change is irrelevant (#4381) build(deps): bump the production-dependencies group across 1 directory with 11 updates (#4380) build(deps): bump the production-dependencies group across 1 directory with 5 updates (#4368) build(deps): bump pygments from 2.19.2 to 2.20.0 in /docs (#4363) build(deps): bump requests from 2.32.5 to 2.33.0 in /docs (#4357) Remove github.com/jackc/pgx/v4 dependency (#4379) Upgrade Go toolchain to 1.26.2 (#4378) build(deps): bump actions/upload-artifact from 6 to 7 (#4320) docs: add sqlc-gen-sqlx to community language support (#4371) build(deps): bump github.com/jackc/pgx/v5 from 5.8.0 to 5.9.0 (#4377) Catch invalid ON CONFLICT DO UPDATE column references (#4366)
2 parents f2141f8 + 64d18fc commit 1613aec

File tree

58 files changed

+536
-362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+536
-362
lines changed

.github/workflows/buf.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: buf
2-
on: pull_request
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- 'docs/**'
6+
- '.readthedocs.yaml'
37
jobs:
48
build:
59
runs-on: ubuntu-latest

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v6
1313
- uses: actions/setup-go@v6
1414
with:
15-
go-version: '1.26.0'
15+
go-version: '1.26.2'
1616
- name: install ./...
1717
run: go build ./...
1818
env:

.github/workflows/ci-kotlin.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ on:
33
push:
44
branches:
55
- main
6+
paths-ignore:
7+
- 'docs/**'
8+
- '.readthedocs.yaml'
69
pull_request:
10+
paths-ignore:
11+
- 'docs/**'
12+
- '.readthedocs.yaml'
713
jobs:
814
build:
915
if: false
@@ -13,7 +19,7 @@ jobs:
1319
- uses: actions/checkout@v6
1420
- uses: actions/setup-go@v6
1521
with:
16-
go-version: '1.26.0'
22+
go-version: '1.26.2'
1723
- name: install ./...
1824
run: go install ./...
1925
- uses: actions/checkout@v6

.github/workflows/ci-python.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ on:
33
push:
44
branches:
55
- main
6+
paths-ignore:
7+
- 'docs/**'
8+
- '.readthedocs.yaml'
69
pull_request:
10+
paths-ignore:
11+
- 'docs/**'
12+
- '.readthedocs.yaml'
713
jobs:
814
build:
915
if: false
@@ -13,7 +19,7 @@ jobs:
1319
- uses: actions/checkout@v6
1420
- uses: actions/setup-go@v6
1521
with:
16-
go-version: '1.26.0'
22+
go-version: '1.26.2'
1723
- name: install ./...
1824
run: go install ./...
1925
- uses: actions/checkout@v6

.github/workflows/ci-typescript.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ on:
33
push:
44
branches:
55
- main
6+
paths-ignore:
7+
- 'docs/**'
8+
- '.readthedocs.yaml'
69
pull_request:
10+
paths-ignore:
11+
- 'docs/**'
12+
- '.readthedocs.yaml'
713
jobs:
814
build:
915
if: false
@@ -13,7 +19,7 @@ jobs:
1319
- uses: actions/checkout@v6
1420
- uses: actions/setup-go@v6
1521
with:
16-
go-version: '1.26.0'
22+
go-version: '1.26.2'
1723
- name: install ./...
1824
run: go install ./...
1925
- uses: actions/checkout@v6

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ on:
33
push:
44
branches:
55
- main
6+
paths-ignore:
7+
- 'docs/**'
8+
- '.readthedocs.yaml'
69
pull_request:
10+
paths-ignore:
11+
- 'docs/**'
12+
- '.readthedocs.yaml'
713
jobs:
814
build:
915
strategy:
@@ -16,7 +22,7 @@ jobs:
1622
- uses: actions/checkout@v6
1723
- uses: actions/setup-go@v6
1824
with:
19-
go-version: '1.26.0'
25+
go-version: '1.26.2'
2026
- run: go build ./...
2127
env:
2228
CGO_ENABLED: "0"
@@ -28,7 +34,7 @@ jobs:
2834
- uses: actions/checkout@v6
2935
- uses: actions/setup-go@v6
3036
with:
31-
go-version: '1.26.0'
37+
go-version: '1.26.2'
3238

3339
- name: install gotestsum
3440
run: go install gotest.tools/gotestsum@latest

.github/workflows/gen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
PG_PASSWORD: postgres
3333
PG_PORT: ${{ job.services.postgres.ports['5432'] }}
3434
- name: Save results
35-
uses: actions/upload-artifact@v6
35+
uses: actions/upload-artifact@v7
3636
with:
3737
name: sqlc-pg-gen-results
3838
path: gen

.readthedocs.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ build:
1010
os: ubuntu-22.04
1111
tools:
1212
python: "3.11"
13+
jobs:
14+
post_checkout:
15+
# Cancel PR builds that don't touch the docs.
16+
# https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition
17+
- |
18+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- docs/ .readthedocs.yaml; then
19+
exit 183
20+
fi
1321
1422
# Build documentation in the docs/ directory with Sphinx
1523
sphinx:

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This document provides essential information for working with the sqlc codebase,
66

77
### Prerequisites
88

9-
- **Go 1.26.0+** - Required for building and testing
9+
- **Go 1.26.2+** - Required for building and testing
1010
- **Docker & Docker Compose** - Required for integration tests with databases (local development)
1111
- **Git** - For version control
1212

@@ -147,7 +147,7 @@ make start # Start database containers
147147
### GitHub Actions Workflow
148148

149149
- **File:** `.github/workflows/ci.yml`
150-
- **Go Version:** 1.26.0
150+
- **Go Version:** 1.26.2
151151
- **Database Setup:** Uses `sqlc-test-setup` (not Docker) to install and start PostgreSQL and MySQL directly on the runner
152152
- **Test Command:** `gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m ./...`
153153
- **Additional Checks:** `govulncheck` for vulnerability scanning

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# STEP 1: Build sqlc
2-
FROM golang:1.26.1 AS builder
2+
FROM golang:1.26.2 AS builder
33

44
COPY . /workspace
55
WORKDIR /workspace

0 commit comments

Comments
 (0)