-
Notifications
You must be signed in to change notification settings - Fork 184
Add codec for Postgres enumerated types #244
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
Comments
We decided to not support Java native enums within the driver as enums are a user-space feature regarding their mapping possibilities (string name, ordinal, Postgres type). You can register your own codec if you wish to do so with your specific mapping rules. |
Reopening this issue. The assumption back then was to make enums work with either the We can make Postgres enumerated types work by providing a |
We now provide a EnumCodec to map Java types to Postgres enumerated types. [closes #244]
Feature Request
Looks like enums are not supported.
Is your feature request related to a problem? Please describe
Maybe I missing something, or doing something wrong but I can't make Postgres enum type work (query with SELECT, INSERT).
Describe the solution you'd like
Possibility to map directly to Java enum type to Postgres enum.
Describe alternatives you've considered
An alternative could be to get enum value as a string.
Teachability, Documentation, Adoption, Migration Strategy
The text was updated successfully, but these errors were encountered: