[DB-SIG] db module wrapper
Dieter Maurer
dieter at handshake.de
Sat Aug 21 23:50:40 CEST 2004
Randall Smith wrote at 2004-8-20 16:53 -0500:
> ...
>{'pyscopg_1.1.15': 'exc_trans execute DatebaseError ProgrammingError'}
>Which means: When the execute method raises a Database error, transform
>it to a Programming error.
>
>Anything not specified in the config would simply transform from
>psycopg.Error to wrapper.Error
>
>How does this approach sound?
The version number in the configuration is a bit worrying...
The exception transformation will rarely change with
a version change. Therefore, it would be nice, when
a module upgrade would not for a configuration change.
--
Dieter
More information about the DB-SIG
mailing list