File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1212// The Protocol Buffer schema is published at buf.build/sqlc/sqlc and ensures
1313// binary compatibility between sqlc and plugins.
1414//
15- // # Generating engine.pb.go
15+ // # Generating engine.pb.go and engine_grpc.pb.go
1616//
1717// Run from the repository root:
1818//
19- // make proto-engine
19+ // make proto-engine-plugin
2020//
2121// or:
2222//
23- // protoc --go_out=. --go_opt=module=github.com/sqlc-dev/sqlc protos/engine/engine.proto
23+ // protoc -I. \
24+ // --go_out=. --go_opt=module=github.com/sqlc-dev/sqlc --go_opt=Mprotos/engine/engine.proto=github.com/sqlc-dev/sqlc/pkg/engine \
25+ // --go-grpc_out=. --go-grpc_opt=module=github.com/sqlc-dev/sqlc --go-grpc_opt=Mprotos/engine/engine.proto=github.com/sqlc-dev/sqlc/pkg/engine \
26+ // protos/engine/engine.proto
2427//
2528// Example plugin:
2629//
3639// })
3740// }
3841//
39- //go:generate protoc -I../.. --go_out= ../.. --go_opt=module=github.com/sqlc-dev/sqlc protos/engine/engine. proto
42+ //go:generate sh -c "cd ../.. && make proto-engine-plugin"
4043package engine
4144
4245import (
You can’t perform that action at this time.
0 commit comments