Skip to content

Commit 88ffdd5

Browse files
kyleconroydependabot[bot]claude
authored
build(deps): bump production-dependencies, register fts5/rtree explicitly (#4531)
* build(deps): bump the production-dependencies group across 1 directory with 3 updates Bumps the production-dependencies group with 3 updates in the / directory: [github.com/google/cel-go](https://github.com/google/cel-go), [github.com/ncruces/go-sqlite3](https://github.com/ncruces/go-sqlite3) and [golang.org/x/sync](https://github.com/golang/sync). Updates `github.com/google/cel-go` from 0.29.0 to 0.30.0 - [Release notes](https://github.com/google/cel-go/releases) - [Commits](cel-expr/cel-go@v0.29.0...v0.30.0) Updates `github.com/ncruces/go-sqlite3` from 0.34.4 to 0.35.2 - [Release notes](https://github.com/ncruces/go-sqlite3/releases) - [Commits](ncruces/go-sqlite3@v0.34.4...v0.35.2) Updates `golang.org/x/sync` from 0.21.0 to 0.22.0 - [Commits](golang/sync@v0.21.0...v0.22.0) --- updated-dependencies: - dependency-name: github.com/google/cel-go dependency-version: 0.30.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/ncruces/go-sqlite3 dependency-version: 0.35.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: golang.org/x/sync dependency-version: 0.22.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * fix(sqlite): register fts5 and rtree extensions explicitly go-sqlite3 v0.35.0 moved the FTS5 and R*Tree/Geopoly extensions into separate packages, so they are no longer part of the default build. This broke schemas that use virtual tables, e.g. CREATE VIRTUAL TABLE ft USING fts5(b); which now fails with "no such module: fts5" when the SQLite analyzer applies migrations. Add an internal package that registers both extensions as auto extensions, and import it wherever sqlc opens a SQLite connection, so they are available on every connection as they were before the bump. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011B9zXEdnMfRMVmWQaJFXVS --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6fff104 commit 88ffdd5

6 files changed

Lines changed: 40 additions & 15 deletions

File tree

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ require (
1010
github.com/davecgh/go-spew v1.1.1
1111
github.com/fatih/structtag v1.2.0
1212
github.com/go-sql-driver/mysql v1.10.0
13-
github.com/google/cel-go v0.29.0
13+
github.com/google/cel-go v0.30.0
1414
github.com/google/go-cmp v0.7.0
1515
github.com/jackc/pgx/v5 v5.10.0
1616
github.com/jinzhu/inflection v1.0.0
1717
github.com/lib/pq v1.12.3
18-
github.com/ncruces/go-sqlite3 v0.34.4
18+
github.com/ncruces/go-sqlite3 v0.35.2
1919
github.com/pganalyze/pg_query_go/v6 v6.2.2
2020
github.com/riza-io/grpc-go v0.2.0
2121
github.com/spf13/cobra v1.10.2
@@ -26,7 +26,7 @@ require (
2626
github.com/tetratelabs/wazero v1.12.0
2727
github.com/wasilibs/go-pgquery v0.0.0-20250409022910-10ac41983c07
2828
github.com/xeipuuv/gojsonschema v1.2.0
29-
golang.org/x/sync v0.21.0
29+
golang.org/x/sync v0.22.0
3030
google.golang.org/grpc v1.82.1
3131
google.golang.org/protobuf v1.36.11
3232
gopkg.in/yaml.v3 v3.0.1
@@ -40,7 +40,7 @@ require (
4040
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
4141
github.com/jackc/puddle/v2 v2.2.2 // indirect
4242
github.com/kr/text v0.2.0 // indirect
43-
github.com/ncruces/go-sqlite3-wasm/v2 v2.6.35302 // indirect
43+
github.com/ncruces/go-sqlite3-wasm/v3 v3.2.35303 // indirect
4444
github.com/ncruces/julianday v1.0.0 // indirect
4545
github.com/rogpeppe/go-internal v1.10.0 // indirect
4646
github.com/wasilibs/wazero-helpers v0.0.0-20240620070341-3dff1577cd52 // indirect
@@ -49,7 +49,7 @@ require (
4949
go.yaml.in/yaml/v3 v3.0.4 // indirect
5050
golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b // indirect
5151
golang.org/x/net v0.55.0 // indirect
52-
golang.org/x/sys v0.45.0 // indirect
52+
golang.org/x/sys v0.46.0 // indirect
5353
golang.org/x/text v0.39.0 // indirect
5454
google.golang.org/genproto/googleapis/api v0.0.0-20260414002931-afd174a4e478 // indirect
5555
google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478 // indirect

go.sum

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ github.com/go-sql-driver/mysql v1.10.0 h1:Q+1LV8DkHJvSYAdR83XzuhDaTykuDx0l6fkXxo
2323
github.com/go-sql-driver/mysql v1.10.0/go.mod h1:M+cqaI7+xxXGG9swrdeUIoPG3Y3KCkF0pZej+SK+nWk=
2424
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
2525
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
26-
github.com/google/cel-go v0.29.0 h1:fEG+Ja3YRwNOqnQxTyJwoByAUAvTuxUGiro/jhrm4F4=
27-
github.com/google/cel-go v0.29.0/go.mod h1:X0bD6iVNR8pkROSOoHVdgTkzmRcosof7WQqCD6wcMc8=
26+
github.com/google/cel-go v0.30.0 h1:ll54AkzKunWkBn9wSoiUXbFZXYZTkdJGNXTBXUoolGo=
27+
github.com/google/cel-go v0.30.0/go.mod h1:X0bD6iVNR8pkROSOoHVdgTkzmRcosof7WQqCD6wcMc8=
2828
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
2929
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
3030
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
@@ -47,10 +47,10 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
4747
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
4848
github.com/lib/pq v1.12.3 h1:tTWxr2YLKwIvK90ZXEw8GP7UFHtcbTtty8zsI+YjrfQ=
4949
github.com/lib/pq v1.12.3/go.mod h1:/p+8NSbOcwzAEI7wiMXFlgydTwcgTr3OSKMsD2BitpA=
50-
github.com/ncruces/go-sqlite3 v0.34.4 h1:bp8jd1o2CMvjkrrp1lOtHDu1TdzExNWACt+piQeMwzg=
51-
github.com/ncruces/go-sqlite3 v0.34.4/go.mod h1:tOyhDWnzlrzflKIGw177imjuO4ZEbfOS1NJ67B1BanQ=
52-
github.com/ncruces/go-sqlite3-wasm/v2 v2.6.35302 h1:IZCiInPIp6OhOc1skMDGOBMwMQuE1TK+QqVe35vd/ro=
53-
github.com/ncruces/go-sqlite3-wasm/v2 v2.6.35302/go.mod h1:ELHF6yqC51E0DiitfabHXl/aKKouCihugbhNT5a+yEY=
50+
github.com/ncruces/go-sqlite3 v0.35.2 h1:YOoumI7tkxMIm1MBrkucRb1qtvAPEh8RrZtv6U+2aLs=
51+
github.com/ncruces/go-sqlite3 v0.35.2/go.mod h1:lVlozMCF6VGdI1FOgl0pBfMviw6DIh/QIMKQyjmg2ac=
52+
github.com/ncruces/go-sqlite3-wasm/v3 v3.2.35303 h1:td8kMW1bWwzc7NnlzPjQV4GbDNLkje8htGBfbZRaSh8=
53+
github.com/ncruces/go-sqlite3-wasm/v3 v3.2.35303/go.mod h1:o8gr9w/50fXA5TDskg6bNUjvqmFfw4KaXth4q+yDSjg=
5454
github.com/ncruces/julianday v1.0.0 h1:fH0OKwa7NWvniGQtxdJRxAgkBMolni2BjDHaWTxqt7M=
5555
github.com/ncruces/julianday v1.0.0/go.mod h1:Dusn2KvZrrovOMJuOt0TNXL6tB7U2E8kvza5fFc9G7g=
5656
github.com/pganalyze/pg_query_go/v6 v6.2.2 h1:O0L6zMC226R82RF3X5n0Ki6HjytDsoAzuzp4ATVAHNo=
@@ -108,10 +108,10 @@ golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b h1:M2rDM6z3Fhozi9O7NWsxAkg/y
108108
golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b/go.mod h1:3//PLf8L/X+8b4vuAfHzxeRUl04Adcb341+IGKfnqS8=
109109
golang.org/x/net v0.55.0 h1:bcvxaJn3e1U6InsFWt1JUq1aSjnRxLzT2rtD2KfkDF8=
110110
golang.org/x/net v0.55.0/go.mod h1:L5U2KuzuOe1lY7Z+aWVIKK6qEeJXnXV9yzGA+WCHJww=
111-
golang.org/x/sync v0.21.0 h1:HLII4xRRTtCRkxYp4HNFF0Js/Og6q2i++KXbg0gHCwM=
112-
golang.org/x/sync v0.21.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
113-
golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY=
114-
golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
111+
golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek=
112+
golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
113+
golang.org/x/sys v0.46.0 h1:noSf2Fq6F8DBgS+LysIkx7rIExoNHJsxOAtPp4rthXw=
114+
golang.org/x/sys v0.46.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
115115
golang.org/x/text v0.39.0 h1:UbZz4pLOvn600D6Oh6GGEI6VAmndrEBLv8/6BEXzyus=
116116
golang.org/x/text v0.39.0/go.mod h1:3UwRclnC2g0TU9x8PZiyfOajCd1zaUNHF9cvqcQZ+ZM=
117117
gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4=

internal/cmd/vet_sqlite.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ package cmd
22

33
import (
44
_ "github.com/ncruces/go-sqlite3/driver"
5+
6+
_ "github.com/sqlc-dev/sqlc/internal/sqlite3ext"
57
)

internal/engine/sqlite/analyzer/analyze.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"github.com/sqlc-dev/sqlc/internal/sql/named"
1717
"github.com/sqlc-dev/sqlc/internal/sql/sqlerr"
1818
"github.com/sqlc-dev/sqlc/internal/sqlcdebug"
19+
_ "github.com/sqlc-dev/sqlc/internal/sqlite3ext"
1920
)
2021

2122
var debugDatabases = sqlcdebug.New("databases")

internal/sqlite3ext/sqlite3ext.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Package sqlite3ext registers the SQLite extensions sqlc relies on with
2+
// github.com/ncruces/go-sqlite3.
3+
//
4+
// As of go-sqlite3 v0.35.0 the FTS5 and R*Tree/Geopoly extensions are compiled
5+
// separately and are no longer part of the default build. Registering them as
6+
// auto extensions makes them available on every connection, matching the
7+
// behavior of earlier releases.
8+
//
9+
// Import this package for side effects wherever a SQLite connection is opened.
10+
package sqlite3ext
11+
12+
import (
13+
"github.com/ncruces/go-sqlite3"
14+
"github.com/ncruces/go-sqlite3/ext/fts5"
15+
"github.com/ncruces/go-sqlite3/ext/rtree"
16+
)
17+
18+
func init() {
19+
sqlite3.AutoExtension(fts5.Register)
20+
sqlite3.AutoExtension(rtree.Register)
21+
}

internal/sqltest/sqlite.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
_ "github.com/ncruces/go-sqlite3/driver"
1010

1111
"github.com/sqlc-dev/sqlc/internal/sql/sqlpath"
12+
_ "github.com/sqlc-dev/sqlc/internal/sqlite3ext"
1213
)
1314

1415
func SQLite(t *testing.T, migrations []string) (*sql.DB, func()) {

0 commit comments

Comments
 (0)