[DB-SIG] DB-API 1.1
Harri PASANEN
harri.pasanen@trema.com
Fri, 05 Jun 1998 11:57:07 +0200
M.-A. Lemburg wrote:
>
> > > >
> > > > Why use the module name? Why not some descriptive name
> > > > like: 'Connect'?
> > > >
> > >
> > > Historical reasons, i.e. no good reason.
> >
> > Well, "good" is subjective. The original reason, which hasn't changed, is
> > that the constructor must be manipulated by code that understand what
> > RDBMSs are available, not be generic code. The rest of the API is
> > intended to be used by generic code.
>
> Having it named 'Connect' makes porting applications much
> easier: all you have to do is change the import (in the ideal
> case).
>
I'd just like to add my vote to suggestions for making
the Connect parameter a dictionary. This way additional
paremeters could be easily supported, such as
'ApplicationName', 'PacketSize', etc.
Regards,
Harri