Re: Converters for built-in types

"Antonio Valente" <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
[CUT]


> Alternatively, you could play tricks with the row_factory feature of
> > pysqlite and convert unicode objects to objects of your own class, like
> > this:
>
>
>
> That's how I did before deciding to use adapters and converters...It seems
> to me a very "dirty" solution, but maybe it's the "cleanest" one!
>

This approach fails in another important (for me, at least) case: the
monetary values. I'd like to store some monetary data, using a SQL standard
"decimal(size,precision)" type. I would install a converter function to use
the Python's decimal.Decimal type, but by now it's impossible. It would be
useful also to access the "size" and "precision" values...
Is there any chance that this feature is implemented?

Thanks a lot

_______________________________________________
pysqlite mailing list
pysqlite-IAPFreCvJWPBWskQ1e/[email protected]
http://lists.initd.org/mailman/listinfo/pysqlite
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.