Beautiful Python

Peter Decker pydecker at gmail.com
Tue Dec 27 14:08:15 EST 2005


On 27 Dec 2005 10:02:17 -0800, Gekitsuu <gekitsuu at gmail.com> wrote:
> My
> hypothetical situation was as follows. I'm writing a new generic SQL
> module and I want to make it so I only call the appropriate module for
> the type of SQL server I'm talking to. Then it would make sense to
> load, for instance, the mysql module and not the sqlite, postgresql,
> etc.

You should take a look at the Dabo project. The dabo.db module take a
setting and imports just the required library for the chosen database.
It really isn't that difficult a concept to handle.

--

# p.d.



More information about the Python-list mailing list