On Jun 25, 5:54 pm, voltron <[EMAIL PROTECTED]> wrote:
> 1. Convert the JSON object to Python code using simplejson, pickle the
> result and store in a binary field?
> 2. Store the JSON object as a string in a string field?

I'd go with no. 2 unless you need to manipulate the object in Python
code (and probably even if you do).

If you want to do fancy stuff, you could write a new type similar to
PickleCol that serializes to JSON instead of pickling. Then you could
just dump your python datastructure directly in there and SA would
store it as a json string in a char/varchar/text field.

Arnar


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to