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

Postgres Citext Support #83

Closed
alexcres opened this issue Jul 16, 2021 · 4 comments
Closed

Postgres Citext Support #83

alexcres opened this issue Jul 16, 2021 · 4 comments

Comments

@alexcres
Copy link

If there is no Citext support, it would be great if jet can use string instead of Citext when generating.

@go-jet
Copy link
Owner

go-jet commented Jul 22, 2021

Currently, generator assumes all USER-DEFINED types are enums. It is the same issue as #72.
With the next release it will be possible to customize all aspects of generated model types.
For now, I would recommend to update model files manually or using a script.

@go-jet
Copy link
Owner

go-jet commented Jul 27, 2021

This issue should be now fixed on develop branch. USER-DEFINED types (excluding enums) will now always appear as string field in generated model types.

@alexcres
Copy link
Author

alexcres commented Aug 10, 2021

Thanks, this is an amazing lib. Quick question, how do I use jet with postgis geography?

@go-jet
Copy link
Owner

go-jet commented Aug 12, 2021

There is no native geography support at the moment.
Geography column is by default mapped to string field in model type. It is possible to customize this field with desired custom
type(answered here).
To write geography specific sql you can use Raw operator.

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