-
Notifications
You must be signed in to change notification settings - Fork 14
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
foreign key types in !table are not supported by codegen transforms #106
Comments
Hi @anz-gordonj7 , the
|
@tiagralee hi, no the sysl is perfectl valid, codegen fails though, try to run it like "sysl gen --root . --root-transform . --transform transforms/svc_types.sysl --grammar grammars/go.gen.g --start goFile " I think petshop.sysl has the same problem actually |
@anz-gordonj7 Thanks for clarify, I'll take a look. |
Hi @anz-gordonj7 , do we want codegen to support data models in !table? got two approach to solve this.
|
We need the go code to generate the types correctly, for that I guess it just means we need the foreign key field to just generate as an int, we dont need the automatic linking (we just need types, not a database) |
Thanks @anz-gordonj7 , got it. |
There is an existing implementation of relation model codegen for Go on an unmerged branch: https://github.com/anz-bank/sysl/tree/anzdaddy/relgom |
sysl:
attempting to run this through the sysl codegen will error out on the
Assessment.assessmentId
"type".The text was updated successfully, but these errors were encountered: