You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating code for enums, knowing the table can be useful.
For example, we could have 2 tables: contract and project, with each an enum named type.
In this case, if we generate a file for each enum in the same package, without the table name we get a collision.
Using the table name, we can generate 2 files / classes: ContractType and ProjectType.
The text was updated successfully, but these errors were encountered:
This changes allows to use the table name while generating file names or struct
names (in Go) for enums, which may help avoid name collisions (2 tables might
have 2 different enums but with the same column name).
Also: updated the dependencies with dep ensure.
When generating code for enums, knowing the table can be useful.
For example, we could have 2 tables:
contract
andproject
, with each an enum namedtype
.In this case, if we generate a file for each enum in the same package, without the table name we get a collision.
Using the table name, we can generate 2 files / classes:
ContractType
andProjectType
.The text was updated successfully, but these errors were encountered: