>> Here's another test, added to the bottom of test_converters.py:
>
> Thanks!
>
>> By the way, how do I write a converter that converts a python object one
>> way for one database (sqlite) and another way for another database
>> (postgres)? Are there any examples of this already?
>
> Yes, see StringLikeConverter.
Actually, I think TimedeltaCol could be implemented for sqlite as
well. Although it doesn't have an INTERVAL data type it could use a
plain TEXT instead and python would do the conversion. As far as I
know sqlite only knows TEXT anyway so IntCol, StringCol, etc, all
these things are implemented as TEXT and the data conversion is done
by python. The TimedeltaCol could be similar.
Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
|