File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
2727)
2828
2929const errMessageNoVersion = `The configuration file must have a version number.
30- Set the version to 1 at the top of sqlc.json:
30+ Set the version to 1 or 2 at the top of sqlc.json:
3131
3232{
3333 "version": "1"
@@ -36,7 +36,7 @@ Set the version to 1 at the top of sqlc.json:
3636`
3737
3838const errMessageUnknownVersion = `The configuration file has an invalid version number.
39- The only supported version is "1 ".
39+ The supported version can only be "1" or "2 ".
4040`
4141
4242const errMessageNoPackages = `No packages are configured`
Original file line number Diff line number Diff line change @@ -10,21 +10,6 @@ import (
1010 yaml "gopkg.in/yaml.v3"
1111)
1212
13- const errMessageNoVersion = `The configuration file must have a version number.
14- Set the version to 1 at the top of sqlc.json:
15-
16- {
17- "version": "1"
18- ...
19- }
20- `
21-
22- const errMessageUnknownVersion = `The configuration file has an invalid version number.
23- The only supported version is "1".
24- `
25-
26- const errMessageNoPackages = `No packages are configured`
27-
2813type versionSetting struct {
2914 Number string `json:"version" yaml:"version"`
3015}
You can’t perform that action at this time.
0 commit comments