[DB-SIG] Some obscurity with paramstyle

Vernon Cole vernondcole at gmail.com
Tue Jul 19 12:05:26 CEST 2011


Yes, please. I would like to see that. Adodbapi has an output conversion
mechanism, but I don't like it particularly well.
  I would be happy to create a fork of adodbapi for a reference
implementation. It will talk to any major database engine, but
unfortunately, only on Windows.
Vernon Cole
(sent from my 'droid phone)

On Jul 19, 2011 3:44 AM, "Federico Di Gregorio" <federico.digregorio at dndg.it>
wrote:
> On 18/07/11 14:54, M.-A. Lemburg wrote:
> [snip]
>> We will likely have to introduce a new TEXT() constructor
>> which maps data objects to text data and then takes care
>> of the database specific encoding issues.
>>
>> There are similar issues with float/decimal and date/time
>> values.
>>
>> It would be great if we could resolve all of these using
>> a data type mapping facility that defines input and output
>> mappings in an efficient and flexible way.
>
> At least 2 drivers (psycopg and pysqlite) provide a Python->backend
> mechanism based on PEP 246, "Object Adaptation". If other implementors
> are interested I can write a short explanation about how it works and
> why it was chosen only for the Python->backend path and not for the
reverse.
>
> federico
>
> --
> Federico Di Gregorio federico.digregorio at dndg.it
> Studio Associato Di Nunzio e Di Gregorio http://dndg.it
> Se sai che hai un ***** di file così, lo manovri subito. -- vodka
> _______________________________________________
> DB-SIG maillist - DB-SIG at python.org
> http://mail.python.org/mailman/listinfo/db-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/db-sig/attachments/20110719/fc072fd2/attachment.html>


More information about the DB-SIG mailing list