Skip to content

Commit fdcce68

Browse files
docs: Add release notes for 1.21.0 (#2704)
* docs: v1.21.0 release notes first pass * Fix tag link --------- Co-authored-by: Kyle Conroy <kyle@sqlc.dev>
1 parent 808c903 commit fdcce68

File tree

2 files changed

+135
-4
lines changed

2 files changed

+135
-4
lines changed

docs/guides/plugins.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ For a complete working example see the following files:
7474
## Environment variables
7575

7676
By default, plugins do not inherit access to environment variables. Instead,
77-
access can be configured on a per-variable basis. For example, if your plugin
78-
needs the `PATH` environment variable, add the `PATH` to the `env` option in the
77+
you can configure access on a per-variable basis. For example, if your plugin
78+
needs the `PATH` environment variable, add `PATH` to the `env` list in the
7979
`plugins` collection.
8080

8181
```yaml
@@ -96,5 +96,5 @@ plugins:
9696
sha256: 138220eae508d4b65a5a8cea555edd155eb2290daf576b7a8b96949acfeb3790
9797
```
9898

99-
The `SQLC_VERSION` environment variable will always be included in the
100-
environment, set to the version of the `sqlc` executable.
99+
A variable named `SQLC_VERSION` is always included in the plugin's
100+
environment, set to the version of the `sqlc` executable invoking it.

docs/reference/changelog.md

Lines changed: 131 additions & 0 deletions
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+
## [1.21.0](https://github.com/sqlc-dev/sqlc/releases/tag/v1.21.0)
5+
Released 2023-09-06
6+
7+
### Release notes
8+
9+
This is primarily a bugfix release, along with some documentation and testing improvements.
10+
11+
#### MySQL engine improvements
12+
13+
`sqlc` previously didn't know how to parse a `CALL` statement when using the MySQL engine,
14+
which meant it was impossible to use sqlc with stored procedures in MySQL databases.
15+
16+
Additionally, `sqlc` now supports `IS [NOT] NULL` in queries. And `LIMIT` and `OFFSET` clauses
17+
now work with `UNION`.
18+
19+
#### SQLite engine improvements
20+
21+
GitHub user [@orisano](https://github.com/orisano) continues to bring bugfixes and
22+
improvements to `sqlc`'s SQLite engine. See the "Changes" section below for the
23+
full list.
24+
25+
#### Plugin access to environment variables
26+
27+
If you're authoring a [sqlc plugin](../guides/plugins.html), you can now configure
28+
sqlc to pass your plugin the values of specific environment variables.
29+
30+
For example, if your plugin
31+
needs the `PATH` environment variable, add `PATH` to the `env` list in the
32+
`plugins` collection.
33+
34+
```yaml
35+
version: '2'
36+
sql:
37+
- schema: schema.sql
38+
queries: query.sql
39+
engine: postgresql
40+
codegen:
41+
- out: gen
42+
plugin: test
43+
plugins:
44+
- name: test
45+
env:
46+
- PATH
47+
wasm:
48+
url: https://github.com/sqlc-dev/sqlc-gen-test/releases/download/v0.1.0/sqlc-gen-test.wasm
49+
sha256: 138220eae508d4b65a5a8cea555edd155eb2290daf576b7a8b96949acfeb3790
50+
```
51+
52+
A variable named `SQLC_VERSION` is always included in the plugin's
53+
environment, set to the version of the `sqlc` executable invoking it.
54+
55+
### Changes
56+
57+
#### Bug Fixes
58+
59+
- Myriad string formatting changes (#2558)
60+
- (engine/sqlite) Support quoted identifier (#2556)
61+
- (engine/sqlite) Fix compile error (#2564)
62+
- (engine/sqlite) Fixed detection of column alias without AS (#2560)
63+
- (ci) Bump go version to 1.20.7 (#2568)
64+
- Remove references to deprecated `--experimental` flag (#2567)
65+
- (postgres) Fixed a problem with array dimensions disappearing when using "ALTER TABLE ADD COLUMN" (#2572)
66+
- Remove GitHub sponsor integration (#2574)
67+
- (docs) Improve discussion of prepared statements support (#2604)
68+
- (docs) Remove multidimensional array qualification in datatypes.md (#2619)
69+
- (config) Go struct tag parsing (#2606)
70+
- (compiler) Fix to not scan children under ast.RangeSubselect when retrieving table listing (#2573)
71+
- (engine/sqlite) Support NOT IN (#2587)
72+
- (codegen/golang) Fixed detection of the used package (#2597)
73+
- (engine/dolphin) Fixed problem that LIMIT OFFSET cannot be used with `UNION ALL` (#2613)
74+
- (compiler) Support identifiers with schema (#2579)
75+
- (compiler) Fix column expansion to work with quoted non-keyword identifiers (#2576)
76+
- (codegen/go) Compare define type in codegen (#2263) (#2578)
77+
- (engine/sqlite) Fix ast when using compound operator (#2673)
78+
- (engine/sqlite) Fix to handle join clauses correctly (#2674)
79+
- (codegen) Use correct Go types for bit strings and cid/oid/tid/xid with pgx/v4 (#2668)
80+
- (endtoend) Ensure all SQL works against PostgreSQL (#2684)
81+
82+
#### Documentation
83+
84+
- Update Docker installation instructions (#2552)
85+
- Missing emit_pointers_for_null_types configuration option in version 2 (#2682) (#2683)
86+
- Fix typo (#2697)
87+
- Document sqlc.* macros (#2698)
88+
- (mysql) Document parseTimet=true requirement (#2699)
89+
- Add atlas to the list of supported migration frameworks (#2700)
90+
- Minor updates to insert howto (#2701)
91+
92+
#### Features
93+
94+
- (endtoend/testdata) Added two sqlite `CAST` tests and rearranged postgres tests for same (#2551)
95+
- (docs) Add a reference to type overriding in datatypes.md (#2557)
96+
- (engine/sqlite) Support COLLATE for sqlite WHERE clause (#2554)
97+
- (mysql) Add parser support for IS [NOT] NULL (#2651)
98+
- (engine/dolphin) Support CALL statement (#2614)
99+
- (codegen) Allow plugins to access environment variables (#2669)
100+
- (config) Add JSON schema files for configs (#2703)
101+
102+
#### Miscellaneous Tasks
103+
104+
- Ignore Vim swap files (#2616)
105+
- Fix typo (#2696)
106+
107+
#### Refactor
108+
109+
- (astutils) Remove redundant nil check in `Walk` (#2660)
110+
111+
#### Build
112+
113+
- (deps) Bump wasmtime from v8.0.0 to v11.0.0 (#2553)
114+
- (deps) Bump golang from 1.20.6 to 1.20.7 (#2563)
115+
- (deps) Bump chardet from 5.1.0 to 5.2.0 in /docs (#2562)
116+
- (deps) Bump github.com/pganalyze/pg_query_go/v4 (#2583)
117+
- (deps) Bump golang from 1.20.7 to 1.21.0 (#2596)
118+
- (deps) Bump github.com/jackc/pgx/v5 from 5.4.2 to 5.4.3 (#2582)
119+
- (deps) Bump pygments from 2.15.1 to 2.16.1 in /docs (#2584)
120+
- (deps) Bump sphinxcontrib-applehelp from 1.0.4 to 1.0.7 in /docs (#2620)
121+
- (deps) Bump sphinxcontrib-qthelp from 1.0.3 to 1.0.6 in /docs (#2622)
122+
- (deps) Bump github.com/google/cel-go from 0.17.1 to 0.17.6 (#2650)
123+
- (deps) Bump sphinxcontrib-serializinghtml in /docs (#2641)
124+
- Upgrade from Go 1.20 to Go 1.21 (#2665)
125+
- (deps) Bump sphinxcontrib-devhelp from 1.0.2 to 1.0.5 in /docs (#2621)
126+
- (deps) Bump github.com/bytecodealliance/wasmtime-go from v11.0.0 to v12.0.0 (#2666)
127+
- (deps) Bump sphinx-rtd-theme from 1.2.2 to 1.3.0 in /docs (#2670)
128+
- (deps) Bump sphinxcontrib-htmlhelp from 2.0.1 to 2.0.4 in /docs (#2671)
129+
- (deps) Bump github.com/google/cel-go from 0.17.6 to 0.18.0 (#2691)
130+
- (deps) Bump actions/checkout from 3 to 4 (#2694)
131+
- (deps) Bump pytz from 2023.3 to 2023.3.post1 in /docs (#2695)
132+
- (devenv) Bump go from 1.20.7 to 1.21.0 (#2702)
133+
134+
4135
## [1.20.0](https://github.com/sqlc-dev/sqlc/releases/tag/v1.20.0)
5136
Released 2023-07-31
6137

0 commit comments

Comments
 (0)