protoc-gen-gorm
protoc-gen-gorm copied to clipboard
A protobuf compiler plugin designed to generate GORM models and APIs for simple object persistence tasks.
Just using the `google.protobuf.Timestamp` in a message causes timestamppb to be imported but only for side effects `_ "google.golang.org/protobuf/types/known/timestamppb"`. This causes build errors as this package is referenced in the...
Ran into an issue where `byte` types in proto were not being translated correctly when the go gorm file was being created. Realized there was a variety of proto types...
project structure:  pay_interface.proto:  api/pay/v1/enum/enum.proto:  api/order/v1/enum/enum.proto:  get errors ``` api/order/v1/order.pb.gorm.go:112:16: undefined: enum ``` api/order/v1/order.pb.gorm.go:  
project structure:  shop/v1/shop.proto:  shop/v1/service/shop.proto:  protoc cmd: ``` protoc --proto_path=. \ --proto_path=./third_party \ --go_out=paths=source_relative:. \ --gorm_out=paths=source_relative:. \ --validate_out=paths=source_relative,lang=go:. \ --go-http_out=paths=source_relative:. \ --go-grpc_out=paths=source_relative:. \ --openapiv2_out . \ --openapiv2_opt logtostderr=true...
This code from version `v0.21.0` will never allow for `index;` tag to be generated: ```go if len(tag.Index) > 0 { if tag.GetIndex() == "" { gormRes += "index;" } else...
I came across an issue with gorm associations. I'm not sure if this is new or based on some of the changes that have been going on with gorm when...
these tags were not generated (recognized as empty and it hurts my head). i have strong thought that was a bug. i fixed it and tested it. foreignkey association_foreignkey many2many...
``` go get github.com/infobloxopen/protoc-gen-gorm # github.com/infobloxopen/protoc-gen-gorm/plugin ../../../../pkg/mod/github.com/infobloxopen/[email protected]/plugin/imports.go:116:16: cannot use dep (type string) as type generator.GoPackageName in argument to p.Generator.PrintImport ../../../../pkg/mod/github.com/infobloxopen/[email protected]/plugin/imports.go:116:16: cannot use dep (type string) as type generator.GoImportPath in argument...
Hello, I have a problem, that I can't see any generated code in my project directory after running (in Makefile): ``` protos: @protoc \ -I /usr/local/include \ -I ${GOPATH}/src \...
protoc-gen-gorm generates nothing against map field in proto3 file. For example the next proto message ``` proto message Request { option (gorm.opts) = { ormable: true multi_account: true include: []...