Skip to content

Update changelog.md with some minor edits #2235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions docs/reference/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ work on Windows.
To bridge that gap, we're announcing remote code generation, currently in
private alpha. To join the private alpha, [sign up for the waitlist](https://docs.google.com/forms/d/e/1FAIpQLScDWrGtTgZWKt3mdlF5R2XCX6tL1pMkB4yuZx5yq684tTNN1Q/viewform?usp=sf_link).

To configure remote generation, configure a `cloud` block in `sqlc.json`.
Remote code generation works like local code generation, except the heavy
lifting is performed in a consistent cloud environment. WASM-based plugins are
supported in the remote environment, but process-based plugins are not.

To configure remote generation, add a `cloud` block in `sqlc.json`.

```json
{
Expand All @@ -31,15 +35,15 @@ To configure remote generation, configure a `cloud` block in `sqlc.json`.
}
```

You'll also need to the `SQLC_AUTH_TOKEN` environment variable.
You'll also need to set the `SQLC_AUTH_TOKEN` environment variable.

```bash
export SQLC_AUTH_TOKEN=<token>
```

When the cloud configuration exists, `sqlc generate` will default to remote
generation. If you'd like to generate code locally, pass the `--no-remote`
option.
When the `cloud` configuration block exists, `sqlc generate` will default to remote
code generation. If you'd like to generate code locally without removing the `cloud`
block from your config, pass the `--no-remote` option.


```bash
Expand All @@ -53,7 +57,7 @@ Remote generation is off by default and requires an opt-in to use.
_Developed by [@nickjackson](https://github.com/nickjackson)_

Embedding allows you to reuse existing model structs in more queries, resulting
in less manual serilization work. First, imagine we have the following schema
in less manual serialization work. First, imagine we have the following schema
with students and test scores.


Expand Down Expand Up @@ -134,7 +138,7 @@ WHERE age IN (sqlc.slice("ages"))
```

```go
func (q *Queries) SelectStudents(ctx context.Context, arges []int32) ([]Student, error) {
func (q *Queries) SelectStudents(ctx context.Context, ages []int32) ([]Student, error) {
```

This feature is only supported in MySQL and cannot be used with prepared
Expand Down