Re: [RFC] ideas for a new Python DBAPI driver (was Re: libpq test suite) - Mailing list pgsql-hackers

From Jonathan Rogers
Subject Re: [RFC] ideas for a new Python DBAPI driver (was Re: libpq test suite)
Date
Msg-id 511D1C50.3000904@socialserve.com
Whole thread Raw
In response to [RFC] ideas for a new Python DBAPI driver (was Re: libpq test suite)  (Manlio Perillo <manlio.perillo@gmail.com>)
Responses Re: [RFC] ideas for a new Python DBAPI driver (was Re: libpq test suite)  (Manlio Perillo <manlio.perillo@gmail.com>)
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A number of the described features sound quite useful. Is it not
practical to extend an existing library such as psycopg2? What method
will you use to call libpq functions? As you are no doubt aware,
psycopg2 uses the traditional CPython API but there is a fork which uses
ctypes instead, enabling it to work with CPython and Pypy.

Manlio Perillo wrote:

> For my Python DBAPI2 PostgreSQL driver I plan the following optimizations:
> 
> 2) when the driver detects a Python string is being sent to the
>    database, use binary format.

What exactly do you mean by "Python string"?


- -- 
Jonathan Ross Rogers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlEdHFAACgkQVmXTv6uMqqOlzgCgxcGtjwFqK1AMKAED9rK5YSOa
3AMAoJhw4197HPBrjpxG/iSLK43B1B3j
=RnaP
-----END PGP SIGNATURE-----



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: sql_drop Event Trigger
Next
From: Fujii Masao
Date:
Subject: Re: 9.2.3 crashes during archive recovery