Skip to content

Commit ff9caa4

Browse files
committed
Use sqlc via go tool
1 parent a04e426 commit ff9caa4

File tree

3 files changed

+267
-3
lines changed

3 files changed

+267
-3
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ tag:
99
git tag -a $$version;
1010

1111
models:
12-
which sqlc || go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
13-
sqlc generate
12+
go get -tool github.com/sqlc-dev/sqlc/cmd/sqlc@latest
13+
go mod tidy
14+
go tool sqlc generate
1415

1516
.PHONY: test tag models

go.mod

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,63 @@ go 1.24
44

55
retract v0.0.0-20230721200106-0458e08d3047 // Publish with the wrong repo name in go.mod
66

7-
require github.com/mattn/go-sqlite3 v1.14.24
7+
require (
8+
github.com/google/go-cmp v0.7.0
9+
github.com/mattn/go-sqlite3 v1.14.24
10+
)
11+
12+
require (
13+
cel.dev/expr v0.19.1 // indirect
14+
filippo.io/edwards25519 v1.1.0 // indirect
15+
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
16+
github.com/cubicdaiya/gonp v1.0.4 // indirect
17+
github.com/davecgh/go-spew v1.1.1 // indirect
18+
github.com/dustin/go-humanize v1.0.1 // indirect
19+
github.com/fatih/structtag v1.2.0 // indirect
20+
github.com/go-sql-driver/mysql v1.9.2 // indirect
21+
github.com/google/cel-go v0.24.1 // indirect
22+
github.com/google/uuid v1.6.0 // indirect
23+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
24+
github.com/jackc/pgpassfile v1.0.0 // indirect
25+
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
26+
github.com/jackc/pgx/v5 v5.7.4 // indirect
27+
github.com/jackc/puddle/v2 v2.2.2 // indirect
28+
github.com/jinzhu/inflection v1.0.0 // indirect
29+
github.com/mattn/go-isatty v0.0.20 // indirect
30+
github.com/ncruces/go-strftime v0.1.9 // indirect
31+
github.com/pganalyze/pg_query_go/v6 v6.1.0 // indirect
32+
github.com/pingcap/errors v0.11.5-0.20240311024730-e056997136bb // indirect
33+
github.com/pingcap/failpoint v0.0.0-20240528011301-b51a646c7c86 // indirect
34+
github.com/pingcap/log v1.1.0 // indirect
35+
github.com/pingcap/tidb/pkg/parser v0.0.0-20250324122243-d51e00e5bbf0 // indirect
36+
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
37+
github.com/riza-io/grpc-go v0.2.0 // indirect
38+
github.com/spf13/cobra v1.9.1 // indirect
39+
github.com/spf13/pflag v1.0.6 // indirect
40+
github.com/sqlc-dev/sqlc v1.29.0 // indirect
41+
github.com/stoewer/go-strcase v1.2.0 // indirect
42+
github.com/tetratelabs/wazero v1.9.0 // indirect
43+
github.com/wasilibs/go-pgquery v0.0.0-20250409022910-10ac41983c07 // indirect
44+
github.com/wasilibs/wazero-helpers v0.0.0-20240620070341-3dff1577cd52 // indirect
45+
go.uber.org/atomic v1.11.0 // indirect
46+
go.uber.org/multierr v1.11.0 // indirect
47+
go.uber.org/zap v1.27.0 // indirect
48+
golang.org/x/crypto v0.36.0 // indirect
49+
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 // indirect
50+
golang.org/x/net v0.38.0 // indirect
51+
golang.org/x/sync v0.13.0 // indirect
52+
golang.org/x/sys v0.31.0 // indirect
53+
golang.org/x/text v0.23.0 // indirect
54+
google.golang.org/genproto/googleapis/api v0.0.0-20250106144421-5f5ef82da422 // indirect
55+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect
56+
google.golang.org/grpc v1.71.1 // indirect
57+
google.golang.org/protobuf v1.36.6 // indirect
58+
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
59+
gopkg.in/yaml.v3 v3.0.1 // indirect
60+
modernc.org/libc v1.62.1 // indirect
61+
modernc.org/mathutil v1.7.1 // indirect
62+
modernc.org/memory v1.9.1 // indirect
63+
modernc.org/sqlite v1.37.0 // indirect
64+
)
65+
66+
tool github.com/sqlc-dev/sqlc/cmd/sqlc

0 commit comments

Comments
 (0)