-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add edgeql to go code generator #236
Conversation
Is cc @1st1 @colinhacks |
|
Ready for review |
@divan and anyone else that would like, we would love to have early feedback from the community on this feature if you are interested in trying it out. |
Currently all generated query functions are public. I think they should be private by default. Then if people ask for it we can provide a mechanism to tell the generator to make query functions public on a per query basis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty cool overall! The anonymous "inline structs" in the generated code saved a lot of naming trouble 👍
|
This change implements the default behavior outlined in edgedb/edgedb#4244. All arguments and options to the generator command are left for future work along with query hashing.
The documentation, help text, and
cmd/edgeql-go/testdata
directory may be areas of interest for reviewers.This is related to #182