Skip to content

Commit b373e60

Browse files
docs: Release notes for v1.23.0 (#2907)
* docs: Release notes for v1.23.0 * Add a few changes --------- Co-authored-by: Kyle Conroy <[email protected]>
1 parent 3a97e74 commit b373e60

File tree

1 file changed

+131
-0
lines changed

1 file changed

+131
-0
lines changed

docs/reference/changelog.md

+131
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,137 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
(v1-23-0)=
5+
## [1.23.0](https://github.com/sqlc-dev/sqlc/releases/tag/v1.23.0)
6+
Released 2023-10-24
7+
8+
### Release notes
9+
10+
#### Database-backed query analysis
11+
12+
With a [database connection](config.md#database) configured, `sqlc generate`
13+
will gather metadata from that database to support its query analysis.
14+
Turning this on resolves a [large number of
15+
issues](https://github.com/sqlc-dev/sqlc/issues?q=is%3Aissue+label%3Aanalyzer)
16+
in the backlog related to type inference and more complex queries. The easiest
17+
way to try it out is with [managed databases](../howto/managed-databases.md).
18+
19+
The database-backed analyzer currently supports PostgreSQL, with [MySQL](https://github.com/sqlc-dev/sqlc/issues/2902) and [SQLite](https://github.com/sqlc-dev/sqlc/issues/2903)
20+
support planned in the future.
21+
22+
#### New `createdb` command
23+
24+
When you have a cloud project configured, you can use the new `sqlc createdb`
25+
command to spin up a new ephemeral database with your schema and print its
26+
connection string to standard output. This is useful for integrating with other
27+
tools. Read more in the [managed
28+
databases](../howto/managed-databases.md#with-other-tools) documentation.
29+
30+
#### Support for pgvector
31+
32+
If you're using [pgvector](https://github.com/pgvector/pgvector), say goodbye to custom overrides! sqlc now generates code using [pgvector-go](https://github.com/pgvector/pgvector-go#pgx) as long as you're using `pgx`. The pgvector extension is also available in [managed databases](../howto/managed-databases.md).
33+
34+
#### Go build tags
35+
36+
With the new `emit_build_tags` configuration parameter you can set build tags
37+
for sqlc to add at the top of generated source files.
38+
39+
### Changes
40+
41+
#### Bug Fixes
42+
43+
- (codegen) Correct column names in :copyfrom (#2838)
44+
- (compiler) Search SELECT and UPDATE the same way (#2841)
45+
- (dolphin) Support more UNIONs for MySQL (#2843)
46+
- (compiler) Account for parameters without parents (#2844)
47+
- (postgresql) Remove temporary pool config (#2851)
48+
- (golang) Escape reserved keywords (#2849)
49+
- (mysql) Handle simplified CASE statements (#2852)
50+
- (engine/dolphin) Support enum in ALTER definition (#2680)
51+
- (mysql) Add, drop, rename and change enum values (#2853)
52+
- (config) Validate `database` config in all cases (#2856)
53+
- (compiler) Use correct func signature for `CommentSyntax` on windows (#2867)
54+
- (codegen/go) Prevent filtering of embedded struct fields (#2868)
55+
- (compiler) Support functions with OUT params (#2865)
56+
- (compiler) Pull in array information from analyzer (#2864)
57+
- (analyzer) Error on unexpanded star expression (#2882)
58+
- (vet) Remove rollback statements from DDL (#2895)
59+
60+
#### Documentation
61+
62+
- Add stable anchors to changelog (#2784)
63+
- Fix typo in v1.22.0 changelog (#2796)
64+
- Add sqlc upload to CI / CD guide (#2797)
65+
- Fix broken link, add clarity to plugins doc (#2813)
66+
- Add clarity and reference to JSON tags (#2819)
67+
- Replace form with dashboard link (#2840)
68+
- (examples) Update examples to use pgx/v5 (#2863)
69+
- Use docker compose v2 and update MYSQL_DATABASE env var (#2870)
70+
- Update getting started guides, use pgx for Postgres guide (#2891)
71+
- Use managed databases in PostgreSQL getting started guide (#2892)
72+
- Update managed databases doc to discuss codegen (#2897)
73+
- Add managed dbs to CI/CD and vet guides (#2896)
74+
- Document database-backed query analyzer (#2904)
75+
76+
#### Features
77+
78+
- (codegen) Support setting Go build tags (#2012) (#2807)
79+
- (generate) Reorder codegen handlers to prefer plugins (#2814)
80+
- (devenv) Add vscode settings.json with auto newline (#2834)
81+
- (cmd) Support sqlc.yml configuration file (#2828)
82+
- (analyzer) Analyze queries using a running PostgreSQL database (#2805)
83+
- (sql/ast) Render AST to SQL (#2815)
84+
- (codegen) Include plugin information (#2846)
85+
- (postgresql) Add ALTER VIEW ... SET SCHEMA (#2855)
86+
- (compiler) Parse query parameter metadata from comments (#2850)
87+
- (postgresql) Support system columns on tables (#2871)
88+
- (compiler) Support LEFT JOIN on aliased table (#2873)
89+
- Improve messaging for common cloud config and rpc errors (#2885)
90+
- Abort compiler when rpc fails as unauthenticated (#2887)
91+
- (codegen) Add support for pgvector and pgvector-go (#2888)
92+
- (analyzer) Cache query analysis (#2889)
93+
- (createdb) Create ephemeral databases (#2894)
94+
- (debug) Add databases=managed debug option (#2898)
95+
- (config) Remove managed database validation (#2901)
96+
97+
#### Miscellaneous Tasks
98+
99+
- (endtoend) Fix test output for do tests (#2782)
100+
101+
#### Refactor
102+
103+
- (codegen) Remove golang and json settings from plugin proto (#2822)
104+
- (codegen) Removed deprecated code and improved speed (#2899)
105+
106+
#### Testing
107+
108+
- (endtoend) Split shema and queries (#2803)
109+
- Fix a few incorrect testcases (#2804)
110+
- (analyzer) Add more database analyzer test cases (#2854)
111+
- Add more analyzer test cases (#2866)
112+
- Add more test cases for new analyzer (#2879)
113+
- (endtoend) Enabled managed-db tests in CI (#2883)
114+
- Enabled pgvector tests for managed dbs (#2893)
115+
116+
#### Build
117+
118+
- (deps) Bump packaging from 23.1 to 23.2 in /docs (#2791)
119+
- (deps) Bump urllib3 from 2.0.5 to 2.0.6 in /docs (#2798)
120+
- (deps) Bump babel from 2.12.1 to 2.13.0 in /docs (#2799)
121+
- (deps) Bump golang.org/x/sync from 0.3.0 to 0.4.0 (#2810)
122+
- (deps) Bump golang from 1.21.1 to 1.21.2 (#2811)
123+
- (deps) Bump github.com/google/go-cmp from 0.5.9 to 0.6.0 (#2826)
124+
- (deps) Bump golang from 1.21.2 to 1.21.3 (#2824)
125+
- (deps) Bump google.golang.org/grpc from 1.58.2 to 1.58.3 (#2825)
126+
- (deps) Bump golang.org/x/net from 0.12.0 to 0.17.0 (#2836)
127+
- (deps) Bump urllib3 from 2.0.6 to 2.0.7 in /docs (#2872)
128+
- (deps) Bump google.golang.org/grpc from 1.58.3 to 1.59.0 (#2876)
129+
- (deps) Upgrade wasmtime-go from 13.0.0 to 14.0.0 (#2900)
130+
131+
#### Ci
132+
133+
- Bump go version in workflows (#2835)
134+
4135

5136
(v1-22-0)=
6137
## [1.22.0](https://github.com/sqlc-dev/sqlc/releases/tag/v1.22.0)

0 commit comments

Comments
 (0)