Closed Soulbadguy54 closed 1 year ago
The core here is that the non-nested mutable doesn't support the list as the base type currently. The nested one does support that right now, so adding nested=True
to your mapped_column(mutable_json_type(dbtype=JSONB))
ought to help with that.
A PR to resolve this was incidentally submitted just a little ago (#51) and I'll release a new version for that one shortly.
Big thanks for you! waiting for new pypi release version :) And yes the nested=True flag fix the exeption!
Released at https://pypi.org/project/sqlalchemy-json/0.7.0/
Hello, i took a break in programming. And for now the new type of error is appear, i think that its connected with new sqlalchemy 2.0 update.
I got this table:
and this class to work with object:
The insertion is performed by function:
this actions result in error with traceback:
I dont understand what should i do to fix this. The only way i see is to write my own mutable object as described in docs, but this way is too complex and looks like the same as this package. Can you help me with the fix? Thank you and sorry for bad english! :)