On 19/08/05, Carl Cerecke <[EMAIL PROTECTED]> wrote:
> On 18/08/05, Steve Holdoway <[EMAIL PROTECTED]> wrote:

> > Why not use a function to wrap the mysql_... functions and swaps the
> > parameters around to correctly call the pg_ functions? That way, the
> > search and replace option becomes viable.
> 
> This sort of thing, as you might imagine, has come up many, many times before.
> Google for ODBC. It is an intermediate layer between applications and
> databases. Theoretically, it makes it much easier to switch between
> database backends.

Also, python has a DB API for which many modules have been written for
different databases. It is more "pythonic" than ODBC.

http://www.python.org/topics/database/modules.html

Cheers,
Carl.

Reply via email to