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
Currently every generated file has comments at the top, which includes a description of the database table and fields, followed by a json sample of the data. This json sample changes every time gen is run. This means git detects file changes in all the generated files.
It would be great if this json sample does not change when gen is run again. Or maybe we could just exclude this json sample from the comments.
Yes, I strongly support this. If the underlying SQL doesn't change, no change should be visible in the file when overwriting existing generated go files. This JSON Sample is present, even when the flag --no-json is used, which seems especially useless. When using git, ignoring or reverting these changes becomes annoying quickly and may potentially lead to ignoring actual changes. And committing those changes doesn't make sense, since nothing actually changed.
Currently every generated file has comments at the top, which includes a description of the database table and fields, followed by a json sample of the data. This json sample changes every time gen is run. This means git detects file changes in all the generated files.
It would be great if this json sample does not change when gen is run again. Or maybe we could just exclude this json sample from the comments.
Example:
changes to the following when gen was run again
The text was updated successfully, but these errors were encountered: