-
Notifications
You must be signed in to change notification settings - Fork 122
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
schemagen: generate go structs for tables #205
Comments
@Bobochka maybe you would be interested in this one. |
Hey @mmatczuk, I would like to work on this. I already started doing something, can you take a look? https://github.com/pavle995/gocqlx/tree/structs-tables |
Nice work, keep it up, it needs some testing. |
Thanks for guidelines. I've added test for map_types.go and updated existing test for schemagen.go. I've also added example in test_examples.go. I've changed from gocql.UUID to [16]byte. This may be a silly question, but why we can't use gocql.UUID? |
There are so many uuid types, we allow for flexibility. |
Any update on this issue? |
This is a followup to #201.
We can now generate the table model but still the structs need to written by hand.
Gocqlx supports UDTs automatically by embedding a special marker interface.
Plain fields should be simple to generate.
Overall the tool should gain ability to generate the table structs.
The text was updated successfully, but these errors were encountered: