Newbie - does Python have DB Independent interface?

Hardy Merrill hmerrill at redhat.com
Wed May 15 13:17:35 EDT 2002


Steve Holden [sholden at holdenweb.com] wrote:
> "Hardy Merrill" <hmerrill at redhat.com> wrote in message
> news:mailman.1021470025.15487.python-list at python.org...
> > I come from the Perl world, and am starting to learn Python.
> > Perl has the DBI module which is a Database Independent interface -
> > you write programs to the DBI api, and then if you choose to
> > change your database, your code needs to change very little, or
> > maybe not at all.
> >
> > Does Python have anything similar, or must you choose your database
> > right up front, and write all your code specific to that one
> > database?
> >
> You mean something like
> 
> http://www.python.org/topics/database/DatabaseAPI-2.0.html
> 
> for example?

Yes, exactly!  As I said, I'm just getting started with Python,
and haven't yet made it through all the docs.

Thanks.





More information about the Python-list mailing list