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 Postgres' HSTORE #69

Open
paulolieuthier opened this issue Jan 7, 2020 · 3 comments
Open

Support Postgres' HSTORE #69

paulolieuthier opened this issue Jan 7, 2020 · 3 comments

Comments

@paulolieuthier
Copy link

No description provided.

@jhaber
Copy link
Member

jhaber commented Jan 7, 2020

Hey thanks for the issue! I haven't used HSTORE before, could you provide more detail about what you're looking for? Would you expect this to work for both binding and mapping? How would you expect the calling Java code to look?

@paulolieuthier
Copy link
Author

Hey, there.

Hstore is a very useful way to store a key-value structure in Postgres. Jdbi supports it and integration is very smooth for Map<String, String>. However, I'd like to use an enum as value (Map<String, MyEnum>).

With Rosetta I can get the hstore to be mapped to the map, but with a problem: an extra key is always added, I couldn't find out why. The key is the name of the column, and value is always null.

I've built a simple application showing the issue: rosetta-test-case.zip.

Thanks for you time, nice project by the way!

@paulolieuthier
Copy link
Author

@jhaber any progress on that? Thanks.

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