-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] ORM Integration #429
Comments
No.
Yes. https://developers.google.com/protocol-buffers/docs/proto#extensions . You don't need any special support or dependency on this project. Define your field level proto extensions, then write your glue code to use some ORM layer. |
I guess @danforbes is talking about something like golang/protobuf#52. And as @tamalsaha said, it does not need any special support in this project. |
Thank @yugui . I did not know about this injector thing. But this is probably never going to be supported by the official protobuf team. I was talking more about field level annotations like http://godoc.org/github.com/gogo/protobuf/gogoproto
ref: https://github.com/gogo/protobuf/blob/master/extensions.md I would think it will be possible to take those annotations and then call some ORM code in some glue code. |
Cool, thanks for the insights, guys! I'll look into your suggestions. |
Does
grpc-gateway
integrate with any ORMs, such asgo-pg
? For instance, is it possible to annotate a protobuf message with an option to specify SQL-specific properties on the generated Go model? If not, is this the sort of thing that the maintainers would consider accepting a pull request for?The text was updated successfully, but these errors were encountered: