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
feat(upload): Point upload command at new endpoint (#2772)
* feat(upload): Point upload command at new endpoint
* fix(config): Remove unused project field
---------
Co-authored-by: Andrew Benton <andrew@sqlc.dev>
*This feature requires signing up for [sqlc Cloud](https://app.sqlc.dev), which is currently in beta.*
3
+
*Added in v1.22.0*
4
4
5
-
Uploading your project ensures that future releases of sqlc do not break your
6
-
existing code. Similar to Rust's [crater](https://github.com/rust-lang/crater)
7
-
project, uploaded projects are tested against development releases of sqlc to
5
+
Uploading an archive of your project ensures that future releases of sqlc do not
6
+
break your code. Similar to Rust's [crater](https://github.com/rust-lang/crater)
7
+
project, uploaded archives are tested against development releases of sqlc to
8
8
verify correctness.
9
9
10
+
Interested in uploading projects? Sign up [here](https://docs.google.com/forms/d/e/1FAIpQLSdxoMzJ7rKkBpuez-KyBcPNyckYV-5iMR--FRB7WnhvAmEvKg/viewform) or send us an email
11
+
at [hello@sqlc.dev](mailto:hello@sqlc.dev).
12
+
10
13
## Add configuration
11
14
12
15
After creating a project, add the project ID to your sqlc configuration file.
13
16
14
17
```yaml
15
-
version: "1"
16
-
project:
17
-
id: "<PROJECT-ID>"
18
-
packages: []
19
-
```
20
-
21
-
```json
22
-
{
23
-
"version": "1",
24
-
"project": {
25
-
"id": "<PROJECT-ID>"
26
-
},
27
-
"packages": [
28
-
]
29
-
}
18
+
version: "2"
19
+
cloud:
20
+
project: "<PROJECT-ID>"
30
21
```
31
22
32
-
You'll also need to create an API token and make it available via the
23
+
You'll also need to create an auth token and make it available via the
0 commit comments