You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/changelog.md
+11-7Lines changed: 11 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,11 @@ work on Windows.
18
18
To bridge that gap, we're announcing remote code generation, currently in
19
19
private alpha. To join the private alpha, [sign up for the waitlist](https://docs.google.com/forms/d/e/1FAIpQLScDWrGtTgZWKt3mdlF5R2XCX6tL1pMkB4yuZx5yq684tTNN1Q/viewform?usp=sf_link).
20
20
21
-
To configure remote generation, configure a `cloud` block in `sqlc.json`.
21
+
Remote code generation works like local code generation, except the heavy
22
+
lifting is performed in a consistent cloud environment. WASM-based plugins are
23
+
supported in the remote environment, but process-based plugins are not.
24
+
25
+
To configure remote generation, add a `cloud` block in `sqlc.json`.
22
26
23
27
```json
24
28
{
@@ -31,15 +35,15 @@ To configure remote generation, configure a `cloud` block in `sqlc.json`.
31
35
}
32
36
```
33
37
34
-
You'll also need to the `SQLC_AUTH_TOKEN` environment variable.
38
+
You'll also need to set the `SQLC_AUTH_TOKEN` environment variable.
35
39
36
40
```bash
37
41
export SQLC_AUTH_TOKEN=<token>
38
42
```
39
43
40
-
When the cloud configuration exists, `sqlc generate` will default to remote
41
-
generation. If you'd like to generate code locally, pass the `--no-remote`
42
-
option.
44
+
When the `cloud` configuration block exists, `sqlc generate` will default to remote
45
+
code generation. If you'd like to generate code locally without removing the `cloud`
46
+
block from your config, pass the `--no-remote`option.
43
47
44
48
45
49
```bash
@@ -53,7 +57,7 @@ Remote generation is off by default and requires an opt-in to use.
53
57
_Developed by [@nickjackson](https://github.com/nickjackson)_
54
58
55
59
Embedding allows you to reuse existing model structs in more queries, resulting
56
-
in less manual serilization work. First, imagine we have the following schema
60
+
in less manual serialization work. First, imagine we have the following schema
57
61
with students and test scores.
58
62
59
63
@@ -134,7 +138,7 @@ WHERE age IN (sqlc.slice("ages"))
0 commit comments