Repository navigation
Comparing changes
Open a pull request
base repository: Mu-L/sqlc
base: main
head repository: sqlc-dev/sqlc
compare: main
- 16 commits
- 260 files changed
- 5 contributors
Commits on Oct 9, 2026
-
Go codegen for ClickHouse, DuckDB, Spanner and SQL Server under datab…
…ase/sql (sqlc-dev#4621) * plugin: carry the analysis core's type expression on Column The core analyzer types every column and parameter as an expression: a name, whether a value may be null, and nested arguments, so decimal(10, 2), array(array(integer)) and struct(x: integer) survive intact. The plugin request flattened that to a single type name plus not_null, is_array, array_dims, length and unsigned, which is not enough for a type mapper to tell nvarchar(max) from nvarchar(50) or to see the element of an array or the fields of a struct. Add a recursive TypeExpr message to the plugin proto and a type_expr field on Column, populated from the core's tree in the shim. It is only set when the analysis core typed the column; the legacy path leaves it unset and the flat fields stay as they were, so existing plugins keep working. When a database analyzer overrides a column's flat type in combineAnalysis, the tree no longer describes the column and is dropped. A DuckDB codegen_json case pins the shape with decimal arguments, nested arrays, a labeled struct, a map and a sized array. The existing JSON request goldens gain the new field, unset, on every column. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * codegen/golang: map ClickHouse, DuckDB, Spanner and SQL Server types The Go generator ran for the four engines the analysis core handles but knew none of their types, so every field came out as any. Add a mapper per engine that reads the column's type expression rather than the flat name, which is what lets it see the element of an array, the key and value of a map, the fields of a struct, and the type LowCardinality or SimpleAggregateFunction wraps. Each maps to the Go types the engine's database/sql driver hands back: shopspring decimals, orb geometries and pointer-typed nullable elements for clickhouse-go; duckdb.Composite, duckdb.Decimal, duckdb.Interval and duckdb.Map for duckdb-go, with a list parameter typed as the slice itself since a Composite is not accepted as an argument; the spanner package's Null types for go-sql-spanner, whose arrays decode into them; and mssql.UniqueIdentifier for go-mssqldb. The tree-reading mappers render the whole type, arrays included, so goType leaves the dimensions to them. Model columns come from the catalog, which the core path flattened, so catalog.Column now carries the expression too and the shim forwards it. The queries for these engines pass slices straight to the driver, so pq.Array wrapping is limited to PostgreSQL under database/sql, where lib/pq needs it. Import detection follows a package qualifier into map keys and values and through any number of slice and pointer prefixes. A core_types case per engine generates the analyze_types schema and queries with database/sql and pins the output; the end-to-end module gains the drivers so the generated code compiles. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * codegen/golang: bind named placeholders with sql.Named, and run the new engines' examples SQL Server and Spanner name a parameter @name in the query text and ClickHouse's server-side placeholder is {name:Type}; their drivers take such an argument as sql.Named rather than by position. When every parameter of a query is named that way, pass each as sql.Named with the name the query uses. A query written with ? keeps positional arguments. Add an authors example for ClickHouse, SQL Server and Spanner beside the existing ones, and one for DuckDB in a module of its own, since its driver is cgo and the main module's builds keep cgo off. Test helpers create a database per test on the server CLICKHOUSE_SERVER_URI, MSSQL_SERVER_URI or SPANNER_SERVER_URI names and skip when none is; the DuckDB example opens a database in memory. CI runs ClickHouse and SQL Server as services, builds the end-to-end module with cgo for the DuckDB driver, and tests the DuckDB module; docker-compose gains a ClickHouse service beside the SQL Server and Spanner Omni ones for local runs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * ci: give the ClickHouse service a password so the example can reach it The ClickHouse image restricts the default user to connections from localhost unless a password is configured, and the test job reaches the service through a port mapping, so the ClickHouse example failed to authenticate. Set a password on the service and in the URI, in docker-compose too. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * examples: make the examples a module of their own, and run Spanner Omni in CI The examples' drivers were becoming dependencies of sqlc itself, and the DuckDB driver, being cgo, had to live in a module apart. Move every example into one module under examples/, which requires sqlc through a replace, so the drivers are its dependencies alone and cgo can stay on for all of it; sqlc's own go.mod loses them, and lib/pq with them, since only the examples imported it. The DuckDB example rejoins the authors example beside the others, and the test helpers for ClickHouse, SQL Server and Spanner move into the examples module, since the drivers they need are what kept them out of sqlc. The end-to-end suite skips the directory under examples that holds those helpers rather than treating it as an example. sqlc-test-setup now installs Spanner Omni from its standalone server release, checked against a pinned SHA-256, and starts a single server in the background on port 15000, so CI runs the Spanner example against it alongside the ClickHouse and SQL Server services. The Makefile and CI run the examples from their module. Drop the clearing of a column's type expression in combineAnalysis: the compiler builds a live-database analyzer only on the legacy path and returns before doing so on the core path, so the two never meet and the expression is never set where the analyzer runs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * docs: say N/A rather than Not implemented in the language support table Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * ci: run the examples in a job of their own The examples need every database sqlc supports, while sqlc's own tests need only PostgreSQL and MySQL. Split the test job in two, and let sqlc-test-setup take the databases to install and start as arguments so each job sets up what it uses. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * ci: build the end-to-end module with cgo off again The DuckDB golden imports the DuckDB driver, which is cgo, so it is left out of that build and checked by the replay suite alone. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * codegen/json: leave out an unset type_expr; test-setup: install ClickHouse and SQL Server A column's type_expr is only set when the analysis core typed it, and the JSON plugin wrote every other column with an explicit null, which put a line on every column of every request the legacy path produced. Drop the member when it is unset instead, so those requests read as they did before the member existed; the goldens on the legacy path are back to what they were. sqlc-test-setup now installs and starts ClickHouse and SQL Server as well, so the examples need no service containers from CI's host. ClickHouse comes from the release tarball goldeneye pins, checked against its SHA-512 and cached where goldeneye caches it, and runs from a configuration the tool writes that gives the default user the password the tests use. SQL Server comes from Microsoft's apt repository for Ubuntu 22.04 and 24.04, set up non-interactively with the EULA accepted, and starts through systemd where there is one and in the background otherwise. The examples job in CI installs and starts every database through the tool. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * codegen/golang: name the engines with constants; ci: build the end-to-end module with cgo The end-to-end module is one of its own, so cgo there is no concern of sqlc's builds, and the DuckDB golden compiles with the rest again. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * test-setup: keep the SQL Server it starts off the tool's own output A detached server holding the tool's stderr open kept anything reading the tool's output waiting after the tool had finished. Its output goes to a file of its own, the way the ClickHouse and Spanner Omni servers' does. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * sqlc-test-setup: accept a successful mssql-conf setup without stat-ing its conf On a GitHub runner the tool runs as an unprivileged user, and /var/opt/mssql is readable by the mssql user only, so stat-ing /var/opt/mssql/mssql.conf failed with permission denied even though setup had completed. Treat a successful setup as installed, and when setup fails check for the configuration through sudo before deciding whether the failure was only the service start. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * codegen/json: write an unset type_expr as null again The regex that stripped the member from protojson's output was a hack around EmitUnpopulated, which has no per-field form. A column the legacy path typed now carries "type_expr": null like every other unset message field, and the goldens are regenerated. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * Bind named placeholders from the compiler, scan DuckDB lists and ClickHouse nullables correctly A parameter whose placeholder names it, SQL Server's and Spanner's @name and ClickHouse's {name:Type}, is now marked by the compiler: the mssql and googlesql converters carry the name on the ParamRef as the ClickHouse one already did, the analyzer keeps it whichever use of the parameter it sees first, and the plugin Parameter gains a named field. The Go codegen reads that instead of searching the query text for "@name", which bound a CAST-wrapped @A positionally, because the analyzer had named it after the column it was compared with, and matched "@id" inside "@identity_no". A row struct is scanned into and a params struct is passed as arguments, and DuckDB wants different types for the two: a list is duckdb.Composite when scanned and a plain slice when passed. Row structs used the params form. The imports for the element of a generic type such as duckdb.Composite[[]time.Time] were also missing, and sql.Named's database/sql import reached the querier interface, which does not use it. clickhouse-go dereferences a Nullable value only when Nullable is the column's outermost type, so LowCardinality(Nullable(T)) and SimpleAggregateFunction(f, Nullable(T)) come through as pointers that a sql.Null wrapper cannot scan; they take the pointer form now. sqlc-test-setup start skips SQL Server wherever install did, rather than failing on an Ubuntu release the packages are not published for. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * plugin: pass the placeholder's name on Parameter rather than a flag The name a placeholder carries, @name or {name:Type}, is what the driver binds by, so the plugin Parameter carries it as name, collected from the query's ParamRef nodes by the compiler rather than taken from the analyzer, which also names a parameter after the function it is compared with. The Go codegen passes it to sql.Named instead of the column's name. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT * codegen/golang: bind parameters the new engines' drivers accept, and keep driver imports to those engines - The driver packages the ClickHouse, DuckDB, Spanner and SQL Server mappers draw on are imported only for those engines, and not when an override's type carries the same qualifier. A PostgreSQL numeric overridden to another package's decimal.Decimal imported shopspring's as well and did not compile. - ClickHouse parameters are typed for what clickhouse-go sends: the std driver never calls Value, and a {name:Type} placeholder is sent as text formatted from the value, so a sql.Null wrapper went out as its struct fields and a decimal, UUID, address or wide integer quoted. A nullable parameter is a pointer, and those types are strings. - DuckDB BIT scans into duckdb.Bit. A DECIMAL parameter is passed as its text and a STRUCT parameter as a map, or any when nullable, since the driver binds neither a Decimal nor a pointer to a map, and binds a nil map as a struct of nulls. - Repeated {name:Type} placeholders share one parameter, and SQL Server compares @name without regard to case, so @name and @name are one. - A query that mixes named placeholders with positional ones, such as the ? sqlc.arg becomes, is an error: it cannot be bound either way. - The four engines reject a sql_package other than database/sql. - A catalog column's type_expr says whether it is nullable, as a result column's does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KRHPAjUHm5bE8noT5ut2C5 * sqlc-test-setup: wait for SQL Server and Spanner Omni to serve, and keep interrupted installs from looking done - start waits for SQL Server's log to say it is ready even when the service is already listening, as it is once mssql-conf setup starts it through systemd, rather than returning while it recovers its databases. A server this machine does not run, such as docker-compose's, still counts once it listens. - A failed mssql-conf setup is tolerated only where there is no systemd, the one failure that leaves a usable configuration behind, and an install that stopped before setup finished reruns it rather than reporting SQL Server installed. The setup command line, which carries the sa password, is no longer logged. - Spanner Omni counts as ready once ListDatabases on its default instance succeeds, not once its port accepts a connection, which it does before the instance exists. The request is encoded by hand, so the Spanner client libraries stay out of the module. - The Omni release is unpacked in process into a directory beside where it goes and moved into place whole, so an interrupted unpack no longer leaves a launcher that looks installed. - Downloads time out after 15 minutes, and the examples job after 45; its Go cache covers the examples module's go.sum as well. - docs: say which of the new engines' types still come out as any, and how DuckDB's JSON columns are read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KRHPAjUHm5bE8noT5ut2C5 * examples: regenerate the ClickHouse authors example for pointer parameters Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KRHPAjUHm5bE8noT5ut2C5 * duckdb: make JSON a type of its own DuckDB's catalog lists JSON as a spelling of VARCHAR, so the seed made it an alias and a JSON column came out as string. But DuckDB keeps JSON apart: typeof() reports it as JSON, and duckdb-go decodes a JSON value into whatever the document holds, which only any can receive. goldeneye now asks typeof() for each alias, and seeds a spelling that DuckDB reports by its own name as a type that stands on the logical type. For JSON that is the base varchar. The DuckDB Go mapper scans JSON into any and binds a JSON parameter from its text as a string. A new duckdb_json case covers columns, parameters and json_extract, and its generated code was run against DuckDB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KRHPAjUHm5bE8noT5ut2C5 --------- Co-authored-by: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 8a26713 - Browse repository at this point
Copy the full SHA 8a26713View commit details -
deps: bump golang.org/x/net to v0.60.0 for govulncheck (sqlc-dev#4636)
* deps: bump golang.org/x/net to v0.60.0 for govulncheck govulncheck flags GO-2026-6603, GO-2026-6610, GO-2026-6611, GO-2026-6612 and one more in golang.org/x/net v0.58.0, all fixed in v0.60.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01St6H2Ga9JLZsjQmfFRCtb5 * examples: bump golang.org/x/net to v0.60.0 Brings the examples module past the same golang.org/x/net advisories fixed in the root module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01St6H2Ga9JLZsjQmfFRCtb5 --------- Co-authored-by: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 971579e - Browse repository at this point
Copy the full SHA 971579eView commit details
Commits on Oct 10, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 0942ad2 - Browse repository at this point
Copy the full SHA 0942ad2View commit details
Commits on Oct 13, 2026
-
build(deps): bump golang from 1.27.1 to 1.27.2 (sqlc-dev#4638)
Bumps golang from 1.27.1 to 1.27.2. --- updated-dependencies: - dependency-name: golang dependency-version: 1.27.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 6fed4db - Browse repository at this point
Copy the full SHA 6fed4dbView commit details -
build(deps): bump go-sqlite3, x/sync and grpc in the root and example…
…s modules (sqlc-dev#4639) * 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/ncruces/go-sqlite3](https://github.com/ncruces/go-sqlite3), [golang.org/x/sync](https://github.com/golang/sync) and [google.golang.org/grpc](https://github.com/grpc/grpc-go). Updates `github.com/ncruces/go-sqlite3` from 0.35.4 to 0.35.6 - [Release notes](https://github.com/ncruces/go-sqlite3/releases) - [Commits](ncruces/go-sqlite3@v0.35.4...v0.35.6) Updates `golang.org/x/sync` from 0.23.0 to 0.24.0 - [Commits](golang/sync@v0.23.0...v0.24.0) Updates `google.golang.org/grpc` from 1.83.2 to 1.84.0 - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.83.2...v1.84.0) --- updated-dependencies: - dependency-name: github.com/ncruces/go-sqlite3 dependency-version: 0.35.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: golang.org/x/sync dependency-version: 0.24.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: google.golang.org/grpc dependency-version: 1.84.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * examples: sync go.mod with the root module's dependency bumps The examples module replaces sqlc with the parent directory, so it has to carry the root module's go-sqlite3, x/sync and grpc versions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SJfbau3x1CzsFtpY9XoQwT --------- 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>
Configuration menu - View commit details
-
Copy full SHA for b3f95b4 - Browse repository at this point
Copy the full SHA b3f95b4View commit details
Commits on Oct 14, 2026
-
ci(dependabot): update every Go module in the repository (sqlc-dev#4640)
* ci(dependabot): update the examples module alongside the root module The examples module replaces github.com/sqlc-dev/sqlc with ../, so a bump that lands only in the root go.mod leaves it out of step (see sqlc-dev#4635 and sqlc-dev#4639). Listing both directories lets each grouped update cover both modules in one pull request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LyueKDc8vSZZALuaDh9RSq * ci(dependabot): keep the goldeneye module up to date too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LyueKDc8vSZZALuaDh9RSq * ci(dependabot): keep the endtoend testdata module up to date The module only exists so CI can compile the committed golden code, and that code builds against the latest version of every driver it imports. Raise its go directive to 1.26.0, matching the other modules, since the current releases of several of its dependencies require it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LyueKDc8vSZZALuaDh9RSq --------- Co-authored-by: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 366857d - Browse repository at this point
Copy the full SHA 366857dView commit details -
sqlc-test-setup: run Spanner Omni on kernels without IPv6 (sqlc-dev#4641
) Spanner Omni's services open IPv6 sockets at startup and abort when the kernel has no IPv6, as in Claude Code's remote environments. When opening an AF_INET6 socket fails with EAFNOSUPPORT, start now builds v6to4, a small LD_PRELOAD library that runs those sockets over IPv4, and preloads it into Omni. Kernels with IPv6 start Omni as before. Claude-Session: https://claude.ai/code/session_01L8QoGi6VRtADkb4jL3BFHP Co-authored-by: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 38c9f89 - Browse repository at this point
Copy the full SHA 38c9f89View commit details -
build(deps): bump the production-dependencies group across 3 director…
…ies with 17 updates (sqlc-dev#4642) Bumps the production-dependencies group with 5 updates in the /examples directory: | Package | From | To | | --- | --- | --- | | [cloud.google.com/go/spanner](https://github.com/googleapis/google-cloud-go) | `1.95.1` | `1.96.1` | | [github.com/ClickHouse/clickhouse-go/v2](https://github.com/ClickHouse/clickhouse-go) | `2.48.0` | `2.49.0` | | [github.com/duckdb/duckdb-go/v2](https://github.com/duckdb/duckdb-go) | `2.10505.0` | `2.10506.0` | | [github.com/microsoft/go-mssqldb](https://github.com/microsoft/go-mssqldb) | `1.11.0` | `1.11.2` | | [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.298.0` | `0.301.0` | Bumps the production-dependencies group with 14 updates in the /internal/endtoend/testdata directory: | Package | From | To | | --- | --- | --- | | [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) | `1.7.0` | `1.10.1` | | [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) | `5.8.0` | `5.11.0` | | [cloud.google.com/go/spanner](https://github.com/googleapis/google-cloud-go) | `1.95.1` | `1.96.1` | | [github.com/duckdb/duckdb-go/v2](https://github.com/duckdb/duckdb-go) | `2.10505.0` | `2.10506.0` | | [github.com/lib/pq](https://github.com/lib/pq) | `1.9.0` | `1.12.3` | | [github.com/microsoft/go-mssqldb](https://github.com/microsoft/go-mssqldb) | `1.11.0` | `1.11.2` | | [github.com/gofrs/uuid](https://github.com/gofrs/uuid) | `4.0.0+incompatible` | `4.4.0+incompatible` | | [github.com/hexon/mysqltsv](https://github.com/hexon/mysqltsv) | `0.1.0` | `0.2.2` | | [github.com/jackc/pgconn](https://github.com/jackc/pgconn) | `1.5.1-0.20200601181101-fa742c524853` | `1.14.3` | | [github.com/jackc/pgtype](https://github.com/jackc/pgtype) | `1.6.2` | `1.14.4` | | [github.com/jackc/pgx/v4](https://github.com/jackc/pgx) | `4.6.1-0.20200606145419-4e5062306904` | `4.18.2` | | [github.com/pgvector/pgvector-go](https://github.com/pgvector/pgvector-go) | `0.1.1` | `0.4.1` | | [github.com/shopspring/decimal](https://github.com/shopspring/decimal) | `1.4.0` | `1.5.0` | | [github.com/sqlc-dev/pqtype](https://github.com/sqlc-dev/pqtype) | `0.2.0` | `0.3.0` | Bumps the production-dependencies group with 6 updates in the /internal/goldeneye directory: | Package | From | To | | --- | --- | --- | | [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) | `1.10.0` | `1.10.1` | | [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) | `5.10.0` | `5.11.0` | | [google.golang.org/grpc](https://github.com/grpc/grpc-go) | `1.83.2` | `1.84.0` | | [cloud.google.com/go/spanner](https://github.com/googleapis/google-cloud-go) | `1.95.1` | `1.96.1` | | [github.com/microsoft/go-mssqldb](https://github.com/microsoft/go-mssqldb) | `1.11.0` | `1.11.2` | | [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.297.0` | `0.301.0` | Updates `cloud.google.com/go/spanner` from 1.95.1 to 1.96.1 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@spanner/v1.95.1...spanner/v1.96.1) Updates `github.com/ClickHouse/clickhouse-go/v2` from 2.48.0 to 2.49.0 - [Release notes](https://github.com/ClickHouse/clickhouse-go/releases) - [Changelog](https://github.com/ClickHouse/clickhouse-go/blob/main/CHANGELOG.md) - [Commits](ClickHouse/clickhouse-go@v2.48.0...v2.49.0) Updates `github.com/duckdb/duckdb-go/v2` from 2.10505.0 to 2.10506.0 - [Release notes](https://github.com/duckdb/duckdb-go/releases) - [Commits](duckdb/duckdb-go@v2.10505.0...v2.10506.0) Updates `github.com/microsoft/go-mssqldb` from 1.11.0 to 1.11.2 - [Release notes](https://github.com/microsoft/go-mssqldb/releases) - [Changelog](https://github.com/microsoft/go-mssqldb/blob/main/CHANGELOG.md) - [Commits](microsoft/go-mssqldb@v1.11.0...v1.11.2) Updates `google.golang.org/api` from 0.298.0 to 0.301.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.298.0...v0.301.0) Updates `github.com/go-sql-driver/mysql` from 1.7.0 to 1.10.1 - [Release notes](https://github.com/go-sql-driver/mysql/releases) - [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md) - [Commits](go-sql-driver/mysql@v1.7.0...v1.10.1) Updates `github.com/jackc/pgx/v5` from 5.8.0 to 5.11.0 - [Release notes](https://github.com/jackc/pgx/releases) - [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md) - [Commits](jackc/pgx@v5.8.0...v5.11.0) Updates `cloud.google.com/go/spanner` from 1.95.1 to 1.96.1 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@spanner/v1.95.1...spanner/v1.96.1) Updates `github.com/duckdb/duckdb-go/v2` from 2.10505.0 to 2.10506.0 - [Release notes](https://github.com/duckdb/duckdb-go/releases) - [Commits](duckdb/duckdb-go@v2.10505.0...v2.10506.0) Updates `github.com/lib/pq` from 1.9.0 to 1.12.3 - [Release notes](https://github.com/lib/pq/releases) - [Changelog](https://github.com/lib/pq/blob/main/CHANGELOG.md) - [Commits](lib/pq@v1.9.0...v1.12.3) Updates `github.com/microsoft/go-mssqldb` from 1.11.0 to 1.11.2 - [Release notes](https://github.com/microsoft/go-mssqldb/releases) - [Changelog](https://github.com/microsoft/go-mssqldb/blob/main/CHANGELOG.md) - [Commits](microsoft/go-mssqldb@v1.11.0...v1.11.2) Updates `github.com/gofrs/uuid` from 4.0.0+incompatible to 4.4.0+incompatible - [Release notes](https://github.com/gofrs/uuid/releases) - [Commits](gofrs/uuid@v4.0.0...v4.4.0) Updates `github.com/hexon/mysqltsv` from 0.1.0 to 0.2.2 - [Commits](hexon/mysqltsv@v0.1.0...v0.2.2) Updates `github.com/jackc/pgconn` from 1.5.1-0.20200601181101-fa742c524853 to 1.14.3 - [Changelog](https://github.com/jackc/pgconn/blob/master/CHANGELOG.md) - [Commits](https://github.com/jackc/pgconn/commits/v1.14.3) Updates `github.com/jackc/pgtype` from 1.6.2 to 1.14.4 - [Changelog](https://github.com/jackc/pgtype/blob/master/CHANGELOG.md) - [Commits](jackc/pgtype@v1.6.2...v1.14.4) Updates `github.com/jackc/pgx/v4` from 4.6.1-0.20200606145419-4e5062306904 to 4.18.2 - [Release notes](https://github.com/jackc/pgx/releases) - [Changelog](https://github.com/jackc/pgx/blob/v4.18.2/CHANGELOG.md) - [Commits](https://github.com/jackc/pgx/commits/v4.18.2) Updates `github.com/pgvector/pgvector-go` from 0.1.1 to 0.4.1 - [Changelog](https://github.com/pgvector/pgvector-go/blob/master/CHANGELOG.md) - [Commits](pgvector/pgvector-go@v0.1.1...v0.4.1) Updates `github.com/shopspring/decimal` from 1.4.0 to 1.5.0 - [Release notes](https://github.com/shopspring/decimal/releases) - [Changelog](https://github.com/shopspring/decimal/blob/master/CHANGELOG.md) - [Commits](shopspring/decimal@v1.4.0...v1.5.0) Updates `github.com/sqlc-dev/pqtype` from 0.2.0 to 0.3.0 - [Release notes](https://github.com/sqlc-dev/pqtype/releases) - [Commits](sqlc-dev/pqtype@v0.2.0...v0.3.0) Updates `github.com/go-sql-driver/mysql` from 1.10.0 to 1.10.1 - [Release notes](https://github.com/go-sql-driver/mysql/releases) - [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md) - [Commits](go-sql-driver/mysql@v1.7.0...v1.10.1) Updates `github.com/jackc/pgx/v5` from 5.10.0 to 5.11.0 - [Release notes](https://github.com/jackc/pgx/releases) - [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md) - [Commits](jackc/pgx@v5.8.0...v5.11.0) Updates `google.golang.org/grpc` from 1.83.2 to 1.84.0 - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.83.2...v1.84.0) Updates `cloud.google.com/go/spanner` from 1.95.1 to 1.96.1 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@spanner/v1.95.1...spanner/v1.96.1) Updates `github.com/microsoft/go-mssqldb` from 1.11.0 to 1.11.2 - [Release notes](https://github.com/microsoft/go-mssqldb/releases) - [Changelog](https://github.com/microsoft/go-mssqldb/blob/main/CHANGELOG.md) - [Commits](microsoft/go-mssqldb@v1.11.0...v1.11.2) Updates `google.golang.org/api` from 0.297.0 to 0.301.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.298.0...v0.301.0) --- updated-dependencies: - dependency-name: cloud.google.com/go/spanner dependency-version: 1.96.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/ClickHouse/clickhouse-go/v2 dependency-version: 2.49.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/duckdb/duckdb-go/v2 dependency-version: 2.10506.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/microsoft/go-mssqldb dependency-version: 1.11.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: google.golang.org/api dependency-version: 0.301.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/go-sql-driver/mysql dependency-version: 1.10.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/jackc/pgx/v5 dependency-version: 5.11.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: cloud.google.com/go/spanner dependency-version: 1.96.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/duckdb/duckdb-go/v2 dependency-version: 2.10506.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/lib/pq dependency-version: 1.12.3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/microsoft/go-mssqldb dependency-version: 1.11.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: github.com/gofrs/uuid dependency-version: 4.4.0+incompatible dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/hexon/mysqltsv dependency-version: 0.2.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/jackc/pgconn dependency-version: 1.14.3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/jackc/pgtype dependency-version: 1.14.4 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/jackc/pgx/v4 dependency-version: 4.18.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/pgvector/pgvector-go dependency-version: 0.4.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/shopspring/decimal dependency-version: 1.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/sqlc-dev/pqtype dependency-version: 0.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/go-sql-driver/mysql dependency-version: 1.10.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: github.com/jackc/pgx/v5 dependency-version: 5.11.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: google.golang.org/grpc dependency-version: 1.84.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: cloud.google.com/go/spanner dependency-version: 1.96.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: github.com/microsoft/go-mssqldb dependency-version: 1.11.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: google.golang.org/api dependency-version: 0.301.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for eb72db8 - Browse repository at this point
Copy the full SHA eb72db8View commit details -
Upgrade zetajones to v0.2.0 (sqlc-dev#4643)
Claude-Session: https://claude.ai/code/session_013N61KD8Akhg8Wzybd7UZhE Co-authored-by: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for c69308b - Browse repository at this point
Copy the full SHA c69308bView commit details
Commits on Oct 19, 2026
-
googlesql: Spanner schemas, arrays, and a function seed from Spanner (s…
…qlc-dev#4645) * googlesql: convert ALTER TABLE, views, renames and HIDDEN columns ALTER TABLE was dropped as unsupported, so columns it added, dropped or retyped never reached the catalog. It now converts ADD/DROP COLUMN, Spanner's ALTER COLUMN (which restates the type and nullability), ALTER COLUMN ... DROP NOT NULL, RENAME COLUMN and RENAME TO; RENAME TABLE converts too. CREATE [OR REPLACE] VIEW and DROP VIEW convert, and a HIDDEN column is left out of SELECT * as Spanner does. The new googlesql cases' schemas were checked against Spanner Omni. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L8QoGi6VRtADkb4jL3BFHP * googlesql: type arrays, UNNEST, subscripts and typed literals The converter now handles typed literals (DATE, TIMESTAMP, NUMERIC, JSON, bytes), array constructors, INTERVAL, the OFFSET/ORDINAL/SAFE_* subscripts and "x IN UNNEST(array)", which becomes "x = ANY(array)". In the analysis core: - A subscript is the array's element, nullable, with an integer index. - ARRAY(subquery) is an array of the column, not its first value. - "x = ANY(array)" types a placeholder as an array of x's type, as PostgreSQL does; sqlc.slice() still gets the element. - A polymorphic function taking anyarray and returning anyelement, as unnest does, returns the array's element, and a function in FROM takes that resolved type, with its alias naming the column. GoogleSQL gains an unnest seed. analyze_arrays is checked against Spanner Omni; the rest are in array_unnest, where Spanner's wire types lose the nullability and lengths the golden pins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L8QoGi6VRtADkb4jL3BFHP * googlesql: seed Spanner's functions and operators functions.jsonl held only count, so every other function typed as any. It now lists 291 signatures across aggregates, math, strings, dates and timestamps, JSON, arrays, hashing, search and vector distance. Their return types, and those of the operators, were read from Spanner Omni by compiling each call in PLAN mode; the search functions and PENDING_COMMIT_TIMESTAMP, which cannot be compiled in a select list, are typed from Spanner's reference. Spanner has no window functions, so none are listed. GoogleSQL now propagates NULL through function arguments, with the functions that return NULL from non-null input marked nullable. The converter maps COALESCE, IFNULL, NULLIF, IF, GREATEST and LEAST onto the nodes the core types them by, makes SAFE.f(...) nullable, passes date parts (DAY, WEEK(MONDAY)) as strings rather than columns, and converts EXTRACT. In the core, an operator a dialect lists now replaces the one its arithmetic rule generates for the same operands, which is how INT64 / INT64 is a FLOAT64; and a placeholder passed for a polymorphic parameter takes its type from the other arguments, so the value in array_includes(array, @v) is the array's element. analyze_functions is checked against Spanner Omni; func_nullability covers what Spanner's wire types cannot report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L8QoGi6VRtADkb4jL3BFHP * goldeneye: generate Spanner's types, functions and operators Spanner keeps no catalog of its library, so goldeneye now reads it by asking. spanner/library.jsonl lists the function signatures to try; each is compiled in PLAN mode against a probe database, and the ones Spanner accepts are written to functions.jsonl with the type it reports. A polymorphic signature is tried with INT64 and STRING and its result must hold for both. Calls a select list cannot make are compiled the way they can be: SEARCH in a WHERE clause, SCORE over a search index, PENDING_COMMIT_TIMESTAMP in an INSERT. operators.jsonl is every binary operator Spanner accepts over the operands tried, and types.jsonl the types the dialect lists, each one Spanner has checked by a cast; the GoogleSQL types only BigQuery has are kept as they are. The generated files hold the same records the seed already did; they are rewritten in goldeneye's compact form, and TestDialect now checks all four files against Spanner. The dialect package's Function gains never_null, which the seed already reads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L8QoGi6VRtADkb4jL3BFHP --------- Co-authored-by: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 40f5d7e - Browse repository at this point
Copy the full SHA 40f5d7eView commit details -
build(deps): bump github.com/jackc/pgx/v4 (sqlc-dev#4644)
Bumps the production-dependencies group with 1 update in the /internal/endtoend/testdata directory: [github.com/jackc/pgx/v4](https://github.com/jackc/pgx). Updates `github.com/jackc/pgx/v4` from 4.18.2 to 4.18.3 - [Release notes](https://github.com/jackc/pgx/releases) - [Changelog](https://github.com/jackc/pgx/blob/v4.18.3/CHANGELOG.md) - [Commits](jackc/pgx@v4.18.2...v4.18.3) --- updated-dependencies: - dependency-name: github.com/jackc/pgx/v4 dependency-version: 4.18.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 0f1602f - Browse repository at this point
Copy the full SHA 0f1602fView commit details
Commits on Oct 21, 2026
-
build(deps): bump the production-dependencies group across 2 director…
…ies with 2 updates (sqlc-dev#4650) Bumps the production-dependencies group with 2 updates in the /examples directory: [github.com/googleapis/go-sql-spanner](https://github.com/googleapis/go-sql-spanner) and [google.golang.org/api](https://github.com/googleapis/google-api-go-client). Bumps the production-dependencies group with 1 update in the /internal/goldeneye directory: [google.golang.org/api](https://github.com/googleapis/google-api-go-client). Updates `github.com/googleapis/go-sql-spanner` from 1.26.0 to 1.27.0 - [Release notes](https://github.com/googleapis/go-sql-spanner/releases) - [Changelog](https://github.com/googleapis/go-sql-spanner/blob/main/CHANGES.md) - [Commits](googleapis/go-sql-spanner@v1.26.0...v1.27.0) Updates `google.golang.org/api` from 0.301.0 to 0.304.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.301.0...v0.304.0) Updates `google.golang.org/api` from 0.301.0 to 0.304.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.301.0...v0.304.0) --- updated-dependencies: - dependency-name: github.com/googleapis/go-sql-spanner dependency-version: 1.27.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: google.golang.org/api dependency-version: 0.304.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: google.golang.org/api dependency-version: 0.304.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1911a76 - Browse repository at this point
Copy the full SHA 1911a76View commit details
Commits on Oct 23, 2026
-
build(deps): bump github.com/shopspring/decimal (sqlc-dev#4652)
Bumps the production-dependencies group with 1 update in the /internal/endtoend/testdata directory: [github.com/shopspring/decimal](https://github.com/shopspring/decimal). Updates `github.com/shopspring/decimal` from 1.5.0 to 1.6.0 - [Release notes](https://github.com/shopspring/decimal/releases) - [Changelog](https://github.com/shopspring/decimal/blob/master/CHANGELOG.md) - [Commits](shopspring/decimal@v1.5.0...v1.6.0) --- updated-dependencies: - dependency-name: github.com/shopspring/decimal dependency-version: 1.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 3ad8b20 - Browse repository at this point
Copy the full SHA 3ad8b20View commit details
Commits on Dec 1, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 3c53a26 - Browse repository at this point
Copy the full SHA 3c53a26View commit details -
duckdb: resolve the rowid pseudo-column (sqlc-dev#4697)
Every DuckDB base table has a rowid pseudo-column, a nullable BIGINT that a query can select, filter on and order by. The engine only knew the columns a table declares, so any use of rowid failed with "unknown column". Add rowid to each table as a hidden column, which keeps it out of star expansions, INSERT targets and the table's model. A table that declares a column named rowid keeps its own column. Fixes sqlc-dev#4676
Configuration menu - View commit details
-
Copy full SHA for 9ac91d3 - Browse repository at this point
Copy the full SHA 9ac91d3View commit details -
duckdb: cover rowid with an analyze case (sqlc-dev#4722)
* duckdb: resolve the rowid pseudo-column Every DuckDB base table offers a rowid that a query can select, filter on and order by. The converter now adds it to each table as a hidden, nullable BIGINT column, the way the SQLite engine adds the hidden columns of an fts5 table, so it resolves by name but stays out of star expansions, INSERT targets and the table's model. A table that declares its own rowid keeps that column. Fixes sqlc-dev#4676 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4JY6kCxkjBm6hN7Lf3 * duckdb: cover rowid with an analyze case Replaces the generated-Go golden from sqlc-dev#4697 with an analyze case over the same schema and queries, so the test pins what sqlc infers for rowid rather than the code it generates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4JY6kCxkjBm6hN7Lf3 --------- Co-authored-by: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 5daa2db - Browse repository at this point
Copy the full SHA 5daa2dbView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...main