Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python and databases

Name: Anonymous 2008-01-15 6:27

Why does Python not have a standardised database API, like Perl's DBI? I want my database code to be as generic as possible in case I change the RDBMS later. Any tips?

Name: Anonymous 2008-01-15 6:42

It does: http://www.python.org/dev/peps/pep-0249/

See also: http://initd.org/pub/software/psycopg/dbapi20programming.pdf

And to make it generic, use import [i]<name of database module>[/i] as db and reference db instead of the module name.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List