-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (31 loc) · 1003 Bytes
/
Makefile
File metadata and controls
45 lines (31 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: build build-endtoend test test-ci test-examples test-endtoend regen start psql mysqlsh
build:
go build ./...
test:
go test ./...
test-examples:
go test --tags=examples ./...
build-endtoend:
cd ./internal/endtoend/testdata && go build ./...
test-endtoend:
cd ./internal/endtoend/testdata && go test ./...
test-ci: test-examples build-endtoend test-endtoend
regen: sqlc-dev
go run ./scripts/regenerate/
sqlc-dev:
go build -o ~/bin/sqlc-dev ./cmd/sqlc/
sqlc-pg-gen:
go build -o ~/bin/sqlc-pg-gen ./internal/tools/sqlc-pg-gen
start:
docker-compose up -d
fmt:
go fmt ./...
psql:
PGPASSWORD=mysecretpassword psql --host=127.0.0.1 --port=5432 --username=postgres dinotest
mysqlsh:
mysqlsh --sql --user root --password mysecretpassword --database dinotest 127.0.0.1:3306
# $ protoc --version
# libprotoc 3.17.3
# go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
proto:
protoc -I ./protos --go_out=. --go_opt=module=github.com/kyleconroy/sqlc ./protos/**/*.proto