[DB-SIG] DB-API 1.1
Thu, 4 Jun 1998 13:47:33 -0700 (PDT)
On Wed, 3 Jun 1998, Bill Tutt wrote:
> > From: Jim Fulton [mailto:jim.fulton@Digicool.com]
> > M.-A. Lemburg wrote:
> > >
> > > M.-A. Lemburg wrote:
> > > >
> > > Module Interface
> > >
> > > The database interface modules should typically be named with
> > > something terminated by db.
> > Why?
> Agreed, this really isn't necessary.
I used "db" to indicate that it was DBI compliant, rather than a
> > > Existing examples are: oracledb,
> > > informixdb, and pg95db. These modules should export several names:
> > > modulename(connection_string_or_tuple)
> > 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.