walterwanderley / sqlc-grpc

Create a gRPC server from code generated by sqlc
MIT License
127 stars 13 forks source link

regenerating after sql file update overwrites swagger options #3

Closed TColl closed 2 years ago

TColl commented 2 years ago

Steps to reproduce

  1. write sql query/schema
  2. run sqlc generate
  3. run sqlc-grpc -m "<path>"
  4. edit swagger API details in proto/model/v1/model.proto to replace the placeholder entries
  5. modify a sql file
  6. per the instructions, run sqlc generate && go generate

The custom swagger details in proto/model/v1/model.proto are now reverted to the placeholder entries, rather than preserving our own details.

walterwanderley commented 2 years ago

Hi @TColl, thanks for the contribution!

Can you update to latest version (v0.10.0)?

TColl commented 2 years ago

confirmed this is now sorted with v0.10.0 - thanks!