Skip to content
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

Support Int4[] #176

Open
ItalicJerrold opened this issue Feb 25, 2022 · 2 comments
Open

Support Int4[] #176

ItalicJerrold opened this issue Feb 25, 2022 · 2 comments

Comments

@ItalicJerrold
Copy link

I used Postgres, and found this generation does not support int4[]. The following is what I got:
type: _INT4 error: unknown sql type: _int4

@ItalicJerrold
Copy link
Author

ItalicJerrold commented Feb 25, 2022

Also how to contribute code, if I want to add this support myself, what should I take care of?

@smallnest
Copy link
Owner

I don't know int4[] in postgres, but I think you can define a new type for int4[]:

https://github.com/smallnest/gen/blob/master/template/mapping.json

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

No branches or pull requests

2 participants