Thanks Michael, Is there an example implementation I can look at ?
--Jinal On Mon, Mar 1, 2010 at 5:54 PM, Michael Trier <mtr...@gmail.com> wrote: > Hello Jinal, > > On Mar 1, 2010, at 7:39 PM, Jinal Jhaveri wrote: > > > I would like to store a zlib compressed version of a table field. > > Whats the best way to handle this where all "gets" to that field > > decompress the content and all "sets" to that field "compresses" the > > content > > You probably want to look at a field type example. The first one I would > suggest is the PickleType that is located in lib/sqlalchemy/types.py. They > key items are the impl attribute, the bind_processor (sets), and the > result_processor (gets). Some of the other types in that file might also be > useful for you to look at. > > Michael > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to sqlalch...@googlegroups.com. > To unsubscribe from this group, send email to > sqlalchemy+unsubscr...@googlegroups.com<sqlalchemy%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.