-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add example for usage with Postgres jsonb columns #44
Comments
But the json string seems escaped with |
I'm not a PostgreSQL user. I'm fine with adding it, but to be fair I don't know the solution for the problem so I'd rely on someone sending a PR. |
The following JSONB example includes:
Migration: Using the class from a console (mine has a name field and timestamps, you can ignore them): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just wanted to let you know I had some issues getting this setup when using a Postgres jsonb column...
My first implementation did not include a custom coder, and when updating a typed_store attribute, I got this error:
Which is because it was using the default yaml coder.
However, when I added the
DumbCoder
, I got aTypeError: can't cast Hash to
error.It was all solved by just using the JSON coder:
I think this would be useful to add to the readme...
Cheers!
The text was updated successfully, but these errors were encountered: