[DB-SIG] What DB-API compliant interfaces are there?
Tue, 9 Sep 1997 15:19:47 -0700
It certainly sounds reasonable to me...
Oh btw, the current list of exceptions for the PythonWin DBI code is:
noError, opError, progError, integrityError, dataError, internalError
noError is generally ment to be thrown when you have a warning i.e. Data
truncated that you should know about.
opError is an operational error i.e. being disconnected, data source
name not found, etc....
progError is a programming error i.e. table already exists, table not
integrityError is an integirity error in the database's relational
integerity i.e. a foreign key check fails
dataError is a data error, i.e. Numeric value out of range, division by
internalError is an interntal Database error, i.e. Invalid cursor state,
invalid transaction state, etc...
> -----Original Message-----
> From: Andrew Kuchling [SMTP:email@example.com]
> Sent: Tuesday, September 09, 1997 1:48 PM
> To: firstname.lastname@example.org
> Subject: Re: [DB-SIG] What DB-API compliant interfaces are there?
> Bill Tutt <email@example.com> wrote:
> >So getting the SOLID ODBC code to work with say, MySQL's Unix odbc
> >interface, or mSQL's Unix odbc interface should
> >be trivial.
> Neat! I may have to try that later... Wouldn't it then be
> reasonable to repackage the module as a Unix OBDC module for
> Solid/mSQL/MySQL/GNU SQL/whatever, and have small #ifdef's only to get
> the names of the header files right for the various databases?
> >Documentation is always the last thing to get updated.... :)
> True enough, but it's something of a pity. It's really cool
> if Python presents identical interfaces to different databases, but
> the capability isn't really advertised very much. (It would also help
> if the mSQL module, which is probably the most common, obeyed the
> Andrew Kuchling
> DB-SIG - SIG on Tabular Databases in Python
> send messages to: firstname.lastname@example.org
> administrivia to: email@example.com
DB-SIG - SIG on Tabular Databases in Python
send messages to: firstname.lastname@example.org
administrivia to: email@example.com