Skip to content

when we use snowflake generate id #868

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

Closed
wants to merge 1 commit into from
Closed

when we use snowflake generate id #868

wants to merge 1 commit into from

Conversation

yunfei1982
Copy link

when we use snowflake generate id
add 'int64_to_string_tags: true' to config
will generate json tag like:
type User struct {
ID int64 json:"id,string"
}

add 'int64_to_string_tags: true' to config
will generate json tag like:
type User struct {
    ID int64 `json:"id,string"`
}
@kyleconroy
Copy link
Collaborator

@yunfei1982 Thanks for the pull request.

Sadly, this solution isn't general enough to get merged. There are many different types and columns that may require different JSON tags. Instead, I think the correct solution here is to support custom models #755.

@kyleconroy kyleconroy closed this Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants