I never promised long term support so it is not documented anywhere I think.But the Sahana Eden project uses it so I continue to maintain it until something better comes along.
There is not much more than in the example above. On May 3, 8:30 am, Jose <jjac...@gmail.com> wrote: > On 3 mayo, 00:21, Massimo Di Pierro <massimo.dipie...@gmail.com> > wrote: > > > > > > > > > > > You can easily make a custom type to do that: > > > import xlib > > compressed = > > SQLCustomType( > > type > > ='text', > > native > > ='text', > > encoder =(lambda x: zlib.compress(x or > > '')), > > decoder = (lambda x: zlib.decompress(x)) > > ) > > > db.define_table( > > > 'example', > > Field('data', > > type=compressed) > > ) > > > May need some testing. Let us know. > > How interesting! > Where I can read some about SQLCustomType? > > Anyone use them? In which case? > > Jose