Home / v1.25.0
Name Modified Size InfoDownloads / Week
Parent folder
sqlc_1.25.0_windows_amd64.zip 2024-01-23 14.0 MB
sqlc_1.25.0_windows_amd64.tar.gz 2024-01-23 14.1 MB
sqlc_1.25.0_linux_arm64.zip 2024-01-23 25.9 MB
sqlc_1.25.0_linux_arm64.tar.gz 2024-01-23 26.0 MB
sqlc_1.25.0_linux_amd64.zip 2024-01-23 14.1 MB
sqlc_1.25.0_linux_amd64.tar.gz 2024-01-23 14.2 MB
sqlc_1.25.0_darwin_arm64.zip 2024-01-23 14.2 MB
sqlc_1.25.0_darwin_arm64.tar.gz 2024-01-23 14.2 MB
sqlc_1.25.0_darwin_amd64.zip 2024-01-23 15.0 MB
sqlc_1.25.0_darwin_amd64.tar.gz 2024-01-23 15.1 MB
README.md 2024-01-04 5.1 kB
v1.25.0 source code.tar.gz 2024-01-04 1.0 MB
v1.25.0 source code.zip 2024-01-04 4.2 MB
Totals: 13 Items   171.9 MB 0

What's new

Add tags to push and verify

You can add tags when pushing schema and queries to sqlc Cloud. Tags operate like git tags, meaning you can overwrite previously-pushed tag values. We suggest tagging pushes to associate them with something relevant from your environment, e.g. a git tag or branch name.

$ sqlc push --tag v1.0.0

Once you've created a tag, you can refer to it when verifying changes, allowing you to compare the existing schema against a known set of previous queries.

$ sqlc verify --against v1.0.0

C-ya, cgo

Over the last month, we've switched out a few different modules to remove our reliance on cgo. Previously, we needed cgo for three separate functions:

With the help of the community, we found cgo-free alternatives for each module:

For the first time, Windows users can enjoy full PostgreSQL support without using WSL. It's a Christmas miracle!

If you run into any issues with the updated dependencies, please open an issue.

Bug Fixes

  • (codegen) Wrong yaml annotation in go codegen options for output_querier_file_name (#3006)
  • (codegen) Use derived ArrayDims instead of deprecated attndims (#3032)
  • (codegen) Take the maximum array dimensions (#3034)
  • (compiler) Skip analysis of queries without a name annotation (#3072)
  • (codegen/golang) Don't import "strings" for sqlc.slice() with pgx (#3073)

Documentation

  • Add name to query set configuration (#3011)
  • Add a sidebar link for push, add Go plugin link (#3023)
  • Update banner for sqlc-gen-typescript (#3036)
  • Add strict_order_by in doc (#3044)
  • Re-order the migration tools list (#3064)

Features

  • (analyzer) Return zero values when encountering unexpected ast nodes (#3069)
  • (codegen/go) add omit_sqlc_version to Go code generation (#3019)
  • (codgen/go) Add emit_sql_as_comment option to Go code plugin (#2735)
  • (plugins) Use wazero instead of wasmtime (#3042)
  • (push) Add tag support (#3074)
  • (sqlite) Support emit_pointers_for_null_types (#3026)

Testing

  • (endtoend) Enable for more build targets (#3041)
  • (endtoend) Run MySQL and PostgreSQL locally on the runner (#3095)
  • (typescript) Test against sqlc-gen-typescript (#3046)
  • Add tests for omit_sqlc_version (#3020)
  • Split schema and query for test (#3094)

Build

New Contributors

Full Changelog: https://github.com/sqlc-dev/sqlc/compare/v1.24.0...v1.25.0

Source: README.md, updated 2024-01-04