Skip to content

Commit 853d233

Browse files
committed
fix incorrect generate model names for "bonuses" and "metadata"
1 parent 1e6902f commit 853d233

File tree

24 files changed

+578
-16
lines changed

24 files changed

+578
-16
lines changed

internal/cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func ParseEnv(c *cobra.Command) Env {
149149
return Env{
150150
DryRun: dr != nil && dr.Changed,
151151
Debug: opts.DebugFromEnv(),
152-
Remote: r != nil && nr.Value.String() == "true",
152+
Remote: r != nil && r.Value.String() == "true",
153153
NoRemote: nr != nil && nr.Value.String() == "true",
154154
}
155155
}

internal/endtoend/testdata/go.mod

Lines changed: 61 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,85 @@
11
module github.com/sqlc-dev/sqlc/endtoend
22

3-
go 1.18
3+
go 1.22
4+
5+
toolchain go1.22.3
46

57
require (
6-
github.com/go-sql-driver/mysql v1.7.0
8+
github.com/go-sql-driver/mysql v1.8.1
79
github.com/gofrs/uuid v4.0.0+incompatible
8-
github.com/google/uuid v1.3.0
10+
github.com/google/uuid v1.6.0
911
github.com/hexon/mysqltsv v0.1.0
10-
github.com/jackc/pgconn v1.5.1-0.20200601181101-fa742c524853
11-
github.com/jackc/pgtype v1.6.2
12-
github.com/jackc/pgx/v4 v4.6.1-0.20200606145419-4e5062306904
13-
github.com/jackc/pgx/v5 v5.4.3
14-
github.com/lib/pq v1.9.0
12+
github.com/jackc/pgconn v1.14.3
13+
github.com/jackc/pgtype v1.14.0
14+
github.com/jackc/pgx/v4 v4.18.3
15+
github.com/jackc/pgx/v5 v5.6.0
16+
github.com/lib/pq v1.10.9
1517
github.com/sqlc-dev/pqtype v0.2.0
1618
github.com/sqlc-dev/sqlc-testdata v1.0.0
1719
github.com/volatiletech/null/v8 v8.1.2
1820
gopkg.in/guregu/null.v4 v4.0.0
1921
)
2022

2123
require (
24+
filippo.io/edwards25519 v1.1.0 // indirect
25+
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
26+
github.com/cubicdaiya/gonp v1.0.4 // indirect
27+
github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect
28+
github.com/davecgh/go-spew v1.1.1 // indirect
29+
github.com/dustin/go-humanize v1.0.1 // indirect
30+
github.com/fatih/structtag v1.2.0 // indirect
2231
github.com/friendsofgo/errors v0.9.2 // indirect
32+
github.com/google/cel-go v0.21.0 // indirect
33+
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
34+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
2335
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
2436
github.com/jackc/pgio v1.0.0 // indirect
2537
github.com/jackc/pgpassfile v1.0.0 // indirect
26-
github.com/jackc/pgproto3/v2 v2.0.1 // indirect
38+
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
2739
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
40+
github.com/jackc/puddle/v2 v2.2.1 // indirect
41+
github.com/jinzhu/inflection v1.0.0 // indirect
42+
github.com/mattn/go-isatty v0.0.20 // indirect
43+
github.com/ncruces/go-strftime v0.1.9 // indirect
44+
github.com/pganalyze/pg_query_go/v5 v5.1.0 // indirect
2845
github.com/pgvector/pgvector-go v0.1.1 // indirect
46+
github.com/pingcap/errors v0.11.5-0.20210425183316-da1aaba5fb63 // indirect
47+
github.com/pingcap/failpoint v0.0.0-20220801062533-2eaa32854a6c // indirect
48+
github.com/pingcap/log v1.1.0 // indirect
49+
github.com/pingcap/tidb/pkg/parser v0.0.0-20231103154709-4f00ece106b1 // indirect
50+
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
51+
github.com/riza-io/grpc-go v0.2.0 // indirect
52+
github.com/spf13/cobra v1.8.1 // indirect
53+
github.com/spf13/pflag v1.0.5 // indirect
54+
github.com/sqlc-dev/sqlc v1.27.0 // indirect
55+
github.com/stoewer/go-strcase v1.2.0 // indirect
56+
github.com/tetratelabs/wazero v1.7.3 // indirect
2957
github.com/volatiletech/inflect v0.0.1 // indirect
3058
github.com/volatiletech/randomize v0.0.1 // indirect
3159
github.com/volatiletech/strmangle v0.0.1 // indirect
32-
golang.org/x/crypto v0.9.0 // indirect
33-
golang.org/x/text v0.9.0 // indirect
60+
github.com/wasilibs/go-pgquery v0.0.0-20240606042535-c0843d6592cc // indirect
61+
github.com/wasilibs/wazero-helpers v0.0.0-20240604052452-61d7981e9a38 // indirect
62+
go.uber.org/atomic v1.11.0 // indirect
63+
go.uber.org/multierr v1.11.0 // indirect
64+
go.uber.org/zap v1.26.0 // indirect
65+
golang.org/x/crypto v0.23.0 // indirect
66+
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
67+
golang.org/x/net v0.25.0 // indirect
68+
golang.org/x/sync v0.8.0 // indirect
69+
golang.org/x/sys v0.22.0 // indirect
70+
golang.org/x/text v0.15.0 // indirect
3471
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
72+
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
73+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect
74+
google.golang.org/grpc v1.65.0 // indirect
75+
google.golang.org/protobuf v1.34.2 // indirect
76+
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
77+
gopkg.in/yaml.v3 v3.0.1 // indirect
78+
modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6 // indirect
79+
modernc.org/libc v1.55.3 // indirect
80+
modernc.org/mathutil v1.6.0 // indirect
81+
modernc.org/memory v1.8.0 // indirect
82+
modernc.org/sqlite v1.31.1 // indirect
83+
modernc.org/strutil v1.2.0 // indirect
84+
modernc.org/token v1.1.0 // indirect
3585
)

0 commit comments

Comments
 (0)