>> 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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to